[ https://issues.apache.org/jira/browse/CAMEL-18264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-18264: -------------------------------- Fix Version/s: 3.14.5 > 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: Improvement > Components: camel-sftp > Environment: Tested with Apache Camel 3.17.0 and 3.18.0 > Reporter: Konrad Stachera > Priority: Major > Fix For: 3.14.5, 3.18.1, 3.19.0 > > 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)