Displaying 1 result from an estimated 1 matches for "sshtransfer".
Did you mean:
sidtransfer
2009 Apr 08
7
How to use Net::SSH
Hi all,
I am having following code in ruby
require ''net/ssh''
require ''net/sftp''
begin
Net::SSH.start
(''132.147.161.159'',:password=>''k'',:port=>1234,:username=>''k'') do |ssh|
ssh.sftp.connect do |sftp|
Dir.foreach(''.'') do |file|
puts file
end