Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18264

Camel SFTP: Cannot configure JSch client to use ssh-dss key

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.14.4, 3.18.0
    • 3.14.5, 3.18.1, 3.19.0
    • camel-sftp
    • None
    • Tested with Apache Camel 3.17.0 and 3.18.0

    • Unknown

    Description

      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:

      session.setConfig("server_host_key", session.getConfig("server_host_key") + ",ssh-dss") 
      session.setConfig("PubkeyAcceptedAlgorithms", session.getConfig("PubkeyAcceptedAlgorithms") + ",ssh-dss") 

      in SftpOperations class:

      the connection is established successfully.

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

      Attachments

        1. image-2022-07-11-10-34-58-099.png
          194 kB
          Konrad Stachera

        Issue Links

          Activity

            People

              Unassigned Unassigned
              KonradStachera Konrad Stachera
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: