fake-sftp-server-rule icon indicating copy to clipboard operation
fake-sftp-server-rule copied to clipboard

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

Open MkJha opened this issue 7 years ago • 2 comments
trafficstars

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

MkJha avatar Sep 21 '18 09:09 MkJha

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 avatar Oct 01 '18 12:10 stefanbirkner

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

stefanbirkner avatar Mar 15 '21 20:03 stefanbirkner