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

0 votes
asked Sep 19, 2017 by brandon-w-8204 (31,870 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

The cipher suites are controlled by the JSch libraries that are used by ApacheCamel.  You can override the default list of libraries by using the appropriate java option found on their page here.

QIE automatically adds the older SHA1 cipher suites into the library, so if you want to prevent the QIE application from adding the old SHA1 ciphers in, use the java option: -Dqie.enableCamelSFTPSha1CipherSuites=false.  This will cause QIE to skip the process of updating the cipher suites with the SHA1 ciphers.

Any change to the cipher suites in JSch apply globally to the QIE environment for all SFTP endpoints, so overriding any of the options will happen for all SFTP endpoints.

Additional Camel FTP options can be found here:

answered Sep 19, 2017 by brandon-w-8204 (31,870 points)
edited Oct 17, 2022 by ben-s-7515