You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/03/06 13:32:32 UTC

[jira] [Assigned] (CAMEL-10946) camel-ftp: knownHostsUri configuration with camel 2.18.2

     [ https://issues.apache.org/jira/browse/CAMEL-10946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-10946:
-----------------------------------

    Assignee:     (was: Claus Ibsen)

> camel-ftp: knownHostsUri configuration with camel 2.18.2
> --------------------------------------------------------
>
>                 Key: CAMEL-10946
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10946
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.18.2
>            Reporter: Francis
>            Priority: Minor
>         Attachments: Capture1.PNG, Capture.PNG
>
>
> I have a known_hosts file in \src\main\resources and I want the ftp-component to use this known_hosts file when connecting to an sftp server (and not be dependent on the ~/.ssh/known_hosts file).
> When using this option (in combination with the option useUserKnownHostsFile=false), camel starts up fine {code}if (isNotEmpty(sftpConfig.getKnownHostsFile())) {{code} is being triggered from SftpOperations.java and I can see that useUserKnownHostsFile and knownHostsFile is set correctly - seen in this picture:
> !https://issues.apache.org/jira/secure/attachment/12856255/Capture.PNG!
> However when some files are added to SFTP server and {code}if (isNotEmpty(sftpConfig.getKnownHostsFile())) {{code} triggers then the values are overridden:
> !https://issues.apache.org/jira/secure/attachment/12856254/Capture1.PNG!
> In logs I see these repeating lines each time a file is added to SFTP server:
> {code}
> ..
> {"@timestamp":"2017-03-06T13:02:04.016+02:00","@version":1,"message":"JSCH -> Permanently added '10.xx.x.xxx' (RSA) to the list of known hosts.","logger_name":"org.apache.camel.component.file.remote.SftpOperations"
> {"@timestamp":"2017-03-06T13:02:04.016+02:00","@version":1,"message":"Server asks for confirmation (yes|no): C:\\Users\\francis.zarins/.ssh/known_hosts does not exist.\nAre you sure you want to create it?. Camel will answer no.",
> ..
> {"@timestamp":"2017-03-06T13:02:35.320+02:00","@version":1,"message":"JSCH -> Permanently added '10.xx.x.xxx' (RSA) to the list of known hosts."
> {"@timestamp":"2017-03-06T13:02:35.336+02:00","@version":1,"message":"Server asks for confirmation (yes|no): C:\\Users\\francis.zarins/.ssh/known_hosts does not exist.\nAre you sure you want to create it?. Camel will answer no.",
> ..
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)