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

SFTP serverHostKeys-parameter is unknown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • 3.18.0
    • 3.18.1
    • camel-sftp
    • None
    • Unknown

    Description

      Camel 3.18.0 (and 3.14.4)

      When calling an SFTP-endpoint I get the following exception:

      org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: sftp://localhost:10022/forsendelser/?fileName=myfile&knownHosts=%23sftpKnownHosts&privateKey=xxxxxx&serverHostKeys=ssh-rsa%2Crsa-sha2-512%2Crsa-sha2-256%2Cecdsa-sha2-nistp256%2Cecdsa-sha2-nistp384%2Cecdsa-sha2-nistp521&useUserKnownHostsFile=xxxxxx&username=xxxxxx due to: Failed to resolve endpoint: sftp://localhost:10022/forsendelser/?fileName=myfile&knownHosts=%23sftpKnownHosts&privateKey=xxxxxx&serverHostKeys=ssh-rsa%2Crsa-sha2-512%2Crsa-sha2-256%2Cecdsa-sha2-nistp256%2Cecdsa-sha2-nistp384%2Cecdsa-sha2-nistp521&useUserKnownHostsFile=xxxxxx&username=xxxxxx due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[\{serverHostKeys=ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521}]

      According to the documentation "serverHostKeys" should be supported
      https://camel.apache.org/components/3.18.x/sftp-component.html

      Attachments

        Activity

          People

            Unassigned Unassigned
            parjohan Pär-Johan Lif
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: