MuleSoft · SFTP Connector
SFTP:INVALID_CREDENTIALS
Short answer
SFTP: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.
VerifiedLast verified
01Error text
Error type: SFTP:INVALID_CREDENTIALS02Likely causes
- Authentication against the SFTP server failed due to invalid credentials.
03How to fix it
- Check the user name and the password or identity file in the SFTP connection configuration.
- Reproduce the problem with an SFTP client such as Cyberduck or FileZilla, using the same host, port and user. Log in with the same credentials.
- Turn on verbose logging: in
log4j2.xmladd<AsyncLogger name="org.mule.extension.sftp" level="DEBUG"/>. For SSH detail add<AsyncLogger name="org.apache.sshd" level="TRACE"/>, which produces a high log volume, so remove it afterward. - Handle the failure with an error handler of type
SFTP:INVALID_CREDENTIALS.
04Official documentation
→Related errors
- SFTP:DISCONNECTEDSFTP:DISCONNECTED means the app made too many failed login attempts to the server. The most common cause is invalid credentials, so fix those first.
- SFTP Connector fails with a PPK identity fileSFTP Connector 2.0.0 and later cannot use a PPK identity file for public key authentication, because the Apache Mina library does not support that format. Convert the key to PEM with PuTTYgen and point the identity file setting at the PEM file.
- SFTP:ACCESS_DENIEDSFTP:ACCESS_DENIED means the operation tried to do something on an SFTP path that the connected user has no permission for. Grant that user the permission on the server, or connect as a user that has it.
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