cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error connecting to an SFTP server

Consultor2024
Explorer
0 Kudos
599

Hi team

I am testing a connection to an sftp server, but the test sends the following error:

com.jcraft.jsch.JSchAlgoNegoFailException: Algorithm negotiation fail: algorithmName="server_host_key" jschProposal="rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521" serverProposal="ssh-rsa"

Consultor2024_0-1729793721806.png

 

Do you have some information about this issue?

Thanks in advance for your support.

Accepted Solutions (0)

Answers (1)

Answers (1)

djuggins43
Explorer

This error means your client and server cannot agree on an algorithm. The server only supports "ssh-rsa" and that is not supported in your client. Compare serverProposal against jschProposal lists, there's no match between them.

Most likely you are working with an old SFTP server using deprecated ciphers (i.e. not regarded as secure). If you check Enable support for Deprecated Algorithms.. it will probably work albeit with the security exposure.