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

Add a knownHosts option to the camel-ssh component

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.20.0
    • Component/s: camel-ssh
    • Labels:
    • Environment:

      Any.

    • Estimated Complexity:
      Novice

      Description

      Currently, when one uses camel-ssh to connect to some server, one gets this message:

      [sshd-SshClient[5be46f9d]-nio2-thread-1] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at /<host>:<port> presented unverified EC key: ...

      This is an annoyance that would readily be gotten rid of by adding a knownHosts option similar to certResource:

      • name: knownHosts
      • default value: null
      • description: Path reference to a the list of known hosts public key certificates (typically ~/.ssh/known_hosts). Prefix path with classpath:, file:, or http:.

      This value would be used by StaticServerKeyVerifier.java to avoid issuing the warning (as appropriate). com.jcraft.jsch.JSch uses this through its setKnownHosts method.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ancosen Andrea Cosentino
                Reporter:
                daniel.thibault Daniel U. Thibault
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: