Net::SSH.start( 'host', 'user',
:password => 'passwd', :auth_methods => ["password"]) do |session|
session.exec("ls -l")
end
From the documentation on the page mentioned above.. (These are also the only authorization methods that are supported.) If you want them to be tried in a different order, or if you don’t want certain methods to be used, you can specify your own list via this option.. Apparently the other methods would not fail-over to password based auth and just die on key auth. Specifying password authorization as the only method to try worked great for me. Keep in mind, this is only something I've observed on my Windows system so this might be a non-issue for a lot of you. If you are stuck on this like I was, I hope this was useful.