Scripting rubyforge sftp interaction


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('','kleb',:verbose=>:debug ) do |sftp|

fails with an error like,

   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 (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`.)



Bil Kleb

P.S. I had to `scp ~/.ssh/`
to get a sftp batch file to work. Otherwise, I was met with the dreaded
"Received message too long" error.