sto cercando di utilizzare Ruby per caricare un file alla mia SFTP e posso SSH e tutto va bene, ma il mio script sta venendo a mancare .... Ecco il mio piccolo scriptrubino errore SFTP
require 'rubygems'
require 'net/sftp'
Net::SFTP.start('50.5.54.77', 'root', :password => 'PASSWORD') do |sftp|
# upload a file or directory to the remote host
sftp.upload!("/Users/tamer/sites/sandbox/move_me.txt", "/home")
end
ma io continuo a ricevere questo errore
ruby sftp.rb
/Library/Ruby/Gems/1.8/gems/net-sftp-2.0.5/lib/net/sftp/operations/upload.rb:313:in `on_open':
Net::SFTP::StatusException open /srv (4, "failure") (Net::SFTP::StatusException)
Tutte le idee che sto facendo male