About SAP cloud com.jcraft.jsch.JschException Auth fail for methods password error message

Error screenshot:

This error message com.jcraft.jsch.JschException: Auth fail for methods passwordusually indicates a failed SSH connection attempt. This error may be caused by a variety of reasons, including but not limited to wrong password, locked account, or server configuration issues. Here are some possible resolution steps:

  1. Check Username and Password: Make sure you have entered the correct username and password. Sometimes, we may inadvertently add extra spaces or special characters to the password, or accidentally use case-sensitive characters.

  2. Check account status: Log in to the SFTP server and check if your account is locked or disabled. If yes, you need to contact the administrator to unlock or enable your account.

  3. Check SSH server configuration: log in to the SSH server, check /etc/ssh/sshd_configthe file. Make sure PasswordAuthenticationthe parameter is set to yes. If set no, then password authentication will not be allowed, you need to change to yesand restart the SSH service.

  4. Check network connection: Make sure the network connection between SAP Cloud Platform and SFTP server is stable. You can try to ping the SFTP server from the SAP cloud platform to see if you can connect successfully.

  5. Update the jsch library: If you are using an older jsch library, there might be some compatibility issues. Try updating the jsch library to the latest version.

  6. Use key authentication: If the server allows it, you can try to use SSH key pair authentication instead of password authentication. This is not only more secure, but also circumvents some possible problems with password authentication.

According to the search results, this error message may be because you have not configured SSH public key authentication correctly, or your SFTP server's host key is not added to the known hosts file 123.

In order to use SSH public key authentication, you need to generate a pair of public and private keys on the SFTP server and copy the public key to the user credentials artifact of SAP Cloud Platform Integration Suite. Then, you need to download or obtain the host key from the SFTP server and add it to the known hosts file. Finally, you need to deploy the known hosts file to the SAP Cloud Platform Integration Suite tenant.

Follow the instructions at the link below:

1: https://blogs.sap.com/2021/06/29/setup-secure-connection-to-sftp-server-using-public-key-authentication-in-sap-cloud-platform-integration/

2: https://blogs.sap.com/2017/08/03/cloud-integration-how-to-setup-secure-connection-to-sftp-server/

3: https://help.sap.com/docs/integration-suite/sap-integration-suite/setting-up-inbound-sftp-connections

Guess you like

Origin blog.csdn.net/i042416/article/details/132351687
Recommended