camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-10946) camel-ftp: knownHostsUri configuration with camel 2.18.2
Date Mon, 06 Mar 2017 11:05:33 GMT

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

Francis updated CAMEL-10946:
----------------------------
    Attachment: Capture.PNG
                Capture1.PNG

> 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
>            Assignee: Claus Ibsen
>            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:
> However when some files are added to SFTP server and {code}if (isNotEmpty(sftpConfig.getKnownHostsFile()))
{{code} triggers and the values are overridden.
> In logs I see these repeating lines:
> {code}
> ..
> {"@timestamp":"2017-03-06T13:02:04.016+02:00","@version":1,"message":"JSCH -> Permanently
added '10.98.4.155' (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.98.4.155' (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)

Mime
View raw message