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 <reto.pe...@advanceit.ch> 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://xxx.com@xxx.hosting: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?
>

Reply via email to