Konrad Stachera created CAMEL-18264:
---------------------------------------

             Summary: Camel SFTP: Cannot configure JSch client to use ssh-dss 
key
                 Key: CAMEL-18264
                 URL: https://issues.apache.org/jira/browse/CAMEL-18264
             Project: Camel
          Issue Type: Bug
          Components: camel-sftp
         Environment: Tested with Apache Camel 3.17.0 and 3.18.0
            Reporter: Konrad Stachera
         Attachments: image-2022-07-11-10-34-58-099.png

When server requires ssh-dss host key algorithm it is not possible to configure 
sFTP camel component to use such key type, therefore connecting fails with 
"com.jcraft.jsch.JSchException: Algorithm negotiation fail". 

When these two properties are added in debug mode:

 
{code:java}
session.setConfig("server_host_key", session.getConfig("server_host_key") + 
",ssh-dss") 
session.setConfig("PubkeyAcceptedAlgorithms", 
session.getConfig("PubkeyAcceptedAlgorithms") + ",ssh-dss") {code}
in SftpOperations class:

 

!image-2022-07-11-10-34-58-099.png!

the connection is established successfully.

It should be possible to configure "server_host_key" and 
"PubkeyAcceptedAlgorithms" in camel sFTP component.

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to