From: Bu Mihai Date: 2008-09-30T18:28:51+09:00 Subject: Re: copy remote a file Brian Candler wrote: > Bu Mihai wrote: >> How can i copy with ruby a file from my computer to another computer >> from lan? I have the administrator password of that computer. > > If the way you login to the other computer is with ssh, then I'd suggest > using Net::SFTP (available as a gem) i have this problem with net::sftp: code: require 'net/ssh' require 'net/sftp' session = Net::SSH.start("machine1","administrator","baubau") I have this error: c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.4/lib/net/ssh.rb:151:in `start': undefined method `keys' for "baubau":String (NoMethodError) from connect.rb:10 The machine1 is up and the password is a valid one. -- Posted via http://www.ruby-forum.com/.