MuleSoft · SFTP Connector
SFTP:KEY_EXCHANGE_FAILED
Short answer
SFTP:KEY_EXCHANGE_FAILED means the app started an SSH connection to the server and failed at the key exchange step. Compare the algorithms the server requires with what the connector offers, using the server configuration and SSH trace logging.
VerifiedLast verified
01Error text
Error type: SFTP:KEY_EXCHANGE_FAILED02Likely causes
- The app tried to make an SSH connection to the server, but failed in the key exchange step.
- The server may require a specific encrypted channel, such as particular ciphers, key exchange algorithms or authentication keys.
03How to fix it
- Review the server configuration for the algorithms it accepts. For OpenSSH, that is
sshd_config. - In
log4j2.xmladd<AsyncLogger name="org.apache.sshd" level="TRACE"/>and read the negotiation in the log. Remove the logger afterward because it degrades performance. - Raise the logging level on the SFTP server and read its log for the same attempt.
- Handle the failure with an error handler of type
SFTP:KEY_EXCHANGE_FAILED.
04Official documentation
→Related errors
- SFTP:CONNECTIVITYSFTP:CONNECTIVITY means the connection to the SFTP server was interrupted. Check the network path and the server, and compare the server's log with the Mule app's log for the same moment.
- SFTP:INVALID_CREDENTIALSSFTP:INVALID_CREDENTIALS means authentication against the SFTP server failed because the credentials are invalid. Correct the user, password or key in the SFTP connection configuration.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer