[ 
https://issues.apache.org/jira/browse/CAMEL-20668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17836884#comment-17836884
 ] 

Saravanakumar Selvaraj commented on CAMEL-20668:
------------------------------------------------

After further investigation, I realized that the issue was with my 
configuration. Setting the {{serverHostKeys}} option to {{ssh-rsa}} resolved 
the problem, and {{camel-sftp}} indeed generates the knownHosts file as 
expected. Apologies for any confusion caused, and thank you for your support!

> camel-sftp - Issue with autoCreateKnownHostsFile 
> -------------------------------------------------
>
>                 Key: CAMEL-20668
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20668
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-sftp
>    Affects Versions: 4.4.1
>            Reporter: Saravanakumar Selvaraj
>            Priority: Minor
>
> I'm encountering a problem with {{camel-sftp}} where the 
> {{autoCreateKnownHostsFile}} option doesn't seem to be functioning as 
> expected. According to the documentation, setting 
> {{autoCreateKnownHostsFile}} to {{true}} should automatically create the 
> known hosts file if it doesn't exist. However, in my testing, the file is not 
> being created as expected.
> *Steps to Reproduce:*
>  # Configure {{camel-sftp}} route with {{autoCreateKnownHostsFile}} set to 
> {{{}true{}}}.
>  # Start the application and establish an SFTP connection.
>  # Check if the known hosts file is created in the specified location.
> *Expected Behavior:* The {{autoCreateKnownHostsFile}} option should create 
> the known hosts file if it doesn't exist, ensuring that host key verification 
> works as intended.
> *Actual Behavior:* The known hosts file is not created automatically, leading 
> to host key verification issues.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to