« home

Known Hosts Issue With Net::SSH

This issue bit me twice within a month, and each time I had to spend a couple of hours to figure out the cause of the problem, mostly due to the obscurity of the error messages. So I was using net-ssh-2.0.15 and jruby-openssl-0.5.1 for a piece of code that’s supposed to perform some remote operations. The Net::SSH usage itself was straightforward… Net::SSH.start(@host, @username, :keys => @keys) do |ssh| ... end When I ran the above snippet on Windows XP, it gave this error message without any further information… The system cannot find the path specified Not exactly helpful, eh?…

more »