Question
I would like to connect to a SFTP server using SSH key authentication, but when I set the created SSH key and tested the connection, the following error occurred.
Connection test failed.
Cause: com.enterprisedt.net.ftp.ssh.SSHFTPException: Could not authenticate SSH client: FAILED
When the connection was made with the "Security type" set to "None" and without setting the private key, the connection succeeded and the results were as expected.
Answer
The error message indicates that the server failed to authenticate the user due to incorrect login information when connecting to the SFTP server.
Specifically, the main possible causes are as follows:
・Incorrect user name
・Client public key is not set, or is set with incorrect contents
Please check the above settings again to make sure there are no errors.
■Supplement
If the similar error message
Connection test failed.
Cause: com.enterprisedt.net.ftp.ssh.SSHFTPException: Could not authenticate SSH client: PARTIAL
is output, it is probably due to the use of two-factor authentication with a public key and password, which is not supported by the FTP connector.
Please change the authentication method to public key or password only and try again.
Related FAQs
What encryption methods can be used with SFTP of FTP connector?
Comments
0 comments
Article is closed for comments.