"com.jcraft.jsch.JSchException: Algorithm negotiation fail error" error when connecting to SFTP

0 votes
asked Sep 19, 2017 by brandon-w-8204 (30,600 points)
retagged Dec 18, 2017 by amanda-w-3695
I am getting  "com.jcraft.jsch.JSchException: Algorithm negotiation fail error." when connecting to an sftp site.

1 Answer

0 votes

Use the Camel FTP option to specify the cipher to use with SFTP. 

Camel FTP option: 



Camel 2.8.2, 2.9: SFTP only Set a comma separated list of ciphers that will be used in order of preference. Possible cipher names are defined by JCraft JSCH. Some examples include: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc. If not specified the default list from JSCH will be used.

The allowed ciphers are listed here:

You will need to install additional cipher/cryptography:

Additional Camel FTP options can be found here:

answered Sep 19, 2017 by brandon-w-8204 (30,600 points)