Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Scripting rubyforge sftp interaction
Bil Kleb
8/23/2007 4:19:00 AM
Hi,
Instead of using a static sftp batchfile, I'd like to
use Ruby to motor around in rubyforge. However, I can't
even get a session connected, e.g.,
require 'rubygems'
require 'net/sftp'
Net::SFTP.start('rubyforge.org','kleb',:verbose=>:debug ) do |sftp|
#...
end
fails with an error like,
/usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/transport/algorithm-negotiator.rb:78:
in `prepare_preferred_algorithms': undefined method `ssh_type' for nil:NilClass (NoMethodError)
I tried adding a :host_key=>'ssh-rsa' or 'ssh-dss' but even
after setting :verbose=>:debug and reading the source, I can't
make any sense out of the errors.
Has anyone managed Ruby-powered sftp interaction with rubyforge?
Is the
http://tony.aiu.to/sa/cv...
(restricted shell) preventing it?
(I'm trying to set group file permissions in the rdoc hierarchy so
others on our team can `rake publish_docs`.)
Thanks,
--
Bil Kleb
http://nasarb.rub...
P.S. I had to `scp ~/.ssh/id_rsa.pub rubyforge.org:.ssh/authorized_keys2`
to get a sftp batch file to work. Otherwise, I was met with the dreaded
"Received message too long" error.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Scripting rubyforge sftp interaction
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password