Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Known host file not configured, using user known host file: C:\Users\Sam/.ssh/known_hosts #13

Open
MkJha opened this issue Sep 21, 2018 · 2 comments

Comments

@MkJha
Copy link

MkJha commented Sep 21, 2018

Error while trying to do sftp.

Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: C:\Users\Sam.ssh\known_hosts (The system cannot find the path specified)
at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:57)
at com.jcraft.jsch.JSch.setKnownHosts(JSch.java:317)
at org.apache.camel.component.file.remote.SftpOperations.createSession(SftpOperations.java:286)
at org.apache.camel.component.file.remote.SftpOperations.connect(SftpOperations.java:115)
... 76 more

In actual sftp server it works fine , but on this mock , the connection could not get established

@stefanbirkner
Copy link
Owner

It looks like C:\Users\Sam.ssh\known_hosts is the wrong filename. I think C:\Users\Sam\.ssh\known_hosts is the correct filename.

@stefanbirkner
Copy link
Owner

IMO the problem is not related to Fake SFTP Server Rule. @MkJha where do you define the name of the known_hosts file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants