You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CompilerException com.jcraft.jsch.JSchException: java.io.FileNotFoundException: C:\Users\Tatu.ssh\known_hosts (The system cannot find the file specified), compiling:(cli.clj:39:15)
Creating an empty known_hosts fixes the issue.
The text was updated successfully, but these errors were encountered:
clj-ssh is currently using com.jcraft.jsch version 0.1.53. If you look in the code for the latest version of com.jcraft.jsch (0.1.54), you'll see that, in KnownHosts.java, the setKnownHosts method has been changed to have an empty catch for FileNotFoundException. In 0.1.53 there was throw new JschException.... So, now, it doesn't matter if the known_hosts file isn't present initially.
So the answer for me was to exclude com.jcraft/jsch from clj-ssh and specifically include the latest version 0.1.54.
dboitnot
added a commit
to sigdba/git-mirror
that referenced
this issue
Oct 14, 2020
user=> (use 'clj-ssh.cli)
CompilerException com.jcraft.jsch.JSchException: java.io.FileNotFoundException: C:\Users\Tatu.ssh\known_hosts (The system cannot find the file specified), compiling:(cli.clj:39:15)
Creating an empty known_hosts fixes the issue.
The text was updated successfully, but these errors were encountered: