Hi
In Camel 3.16.0 we did successfully use the SFTP component like this:
from("sftp://{{sftp.host}}:{{sftp.port}}/{{sftp.remotedir.from.customer}}"
+ "?username={{sftp.username}}"
+ "&password={{sftp.password}}"
+
"&useUserKnownHostsFile=false&delete=true&delay=30000")
The version of the lib used was jsch-0.1.55.jar
After upgrading to Camel 3.18.0 we got errors like this:
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
connect to sftp://[email protected]:5544
Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail
at com.jcraft.jsch.Session.receive_kexinit(Session.java:604)
at com.jcraft.jsch.Session.connect(Session.java:334)
at
org.apache.camel.component.file.remote.SftpOperations.tryConnect(SftpOperations.java:160)
at
org.apache.camel.support.task.ForegroundTask.run(ForegroundTask.java:92)
at
org.apache.camel.component.file.remote.SftpOperations.connect(SftpOperations.java:135)
The lib used was jsch-0.2.1.jar
After replacing the new with the old library jsch-0.1.55.jar, everything works
again
Any idea?