Hi Did you find out about the algorithms with the newer JAR or did you just keep using the old JSCH client? I think feedback here is valuable for other users.
And we should add a note in the 3.18 upgrade guide about this so others can take notice ahead of time before upgrading. https://camel.apache.org/manual/camel-3x-upgrade-guide-3_18.html On Wed, Jul 13, 2022 at 10:24 AM Grzegorz Grzybek <[email protected]> wrote: > Hello > > https://issues.apache.org/jira/browse/CAMEL-17835 issue was about > switching > from unmaintained version of jsch to new forked version with more (safer) > alogorithms supported (like SHA2 and eddsa). > > You'd have to enable server side and Camel debug logging to check which KEX > algorithms are presented by Camel and which are offered by the server. > > kind regards > Grzegorz Grzybek > > śr., 13 lip 2022 o 10:17 Reto Peter <[email protected]> napisał(a): > > > 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? > > > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
