1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
4.6K views
by brandon-w-8204 (34.1k points)
retagged 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.

Note:
Additional Camel FTP options can be found here: 
http://camel.apache.org/ftp2.html

by brandon-w-8204 (34.1k points)
edited by ben-s-7515
...