J
James Dinkel
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.
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.