Symptom
Failed to connect to SFTP server with error log "ssh_exchange_identification: Connection closed by remote host..."
Environment
SAP SuccessFactors HCM Suite
Reproducing the Issue
Login to SFTP server with provided user account name and password, failed to login, customer can see error with SFTP connection on their side.
Cause
There are various causes that could lead to such error with SFTP connection including but not limited to:
- The IP address of the customer has been blocklisted in our SFTP server
- Customer tried to login using wrong credentials multiple times which auto-banned customer's public IP
- SSH host keys are corrupted for some reason
Even if the same error occurs, the underlying cause may vary from case to case. Most of the time, verbose error logs are required to determine the root cause.
Resolution
For the "ssh_exchange_identification: Connection closed by remote host" error, troubleshooting should typically begin on the client side. In many cases, restarting the sshd service resolves the issue.
If the problem persists, collect the SSH/SFTP logs in verbose mode and provide them through a support case under component LOD-SF-PLT-FTPE. The logs will enable operations team to perform a detailed analysis and determine whether the root cause is related to the server side.
To generate detailed diagnostic logs, run:
sftp -vvv SFTPACCOUNT@SFTPURL.com
(for example sftp -vvv sftpaccount@sftp10.successfactors.com)
See Also
KBA 1296527 - How to create a support case for SAP Support - SAP for Me
Keywords
SSH key, ssh_exchange_identification , KBA , LOD-SF-PLT-FTPE , SFTP Login Errors , Problem
SAP Knowledge Base Article - Public