From: James Dinkel Date: 2008-04-16T06:45:40+09:00 Subject: Windows, Net::SSH: how do I use a private key (w / password) Private key authentication works with this user, I know because I use it fine with Putty. Here is my script right now: ------------ require 'rubygems' require 'net/ssh' Net::SSH.start( 'files02', 'myuser', 'mypassword' ) do |session| session.open_channel do |channel| channel.on_data do |ch, data| puts data end channel.exec "echo \"hello\"" end session.loop end ------------- and it works, but I would prefer it to use a private key for the authentication and then prompt for the key's password. In the documentation it says it will automatically look for a key in certain places, but the places are unix paths and this needs to run from a Windows (XP) box. -- Posted via http://www.ruby-forum.com/.