I just installed Net::SSH 0.0.3 and started to play with it.

The first simple thing I tried bombed on me.

All info below.

Jamis or whoever else -- thanks for any assistance.


Cheers,
Hal



(This is FC1 and Ruby 1.8.2)

Here's the script (a trivial mod of one of the examples):


   require 'net/ssh'

   domain = 'WhoWantsToKnow.com'
   user   = 'hal'
   pass   = 'yeah,youwish'

   Net::SSH.start(domain,user,pass) do |session|
     result = session.exec( "ls -la" )
     puts result.data
     puts "-------------------------------------------"
     result = session.exec( "ls -la /" )
     puts result.data
     puts "-------------------------------------------"
     result = session.exec( "echo $HOME" )
     puts result.data
   end


And here's the result:


/usr/local/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh/transport/kex/dh.rb:60:in 
`initialize': wrong number of arguments (0 for 1) (ArgumentError)
         from 
/usr/local/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh/transport/kex/dh.rb:60:in 
`new'
         from 
/usr/local/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh/transport/kex/dh.rb:60:in 
`exchange_keys'
         from 
/usr/local/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh/transport/session.rb:292:in 
`exchange_keys'
         from 
/usr/local/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh/transport/session.rb:124:in 
`initialize'
         from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh.rb:119:in `new'
         from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh.rb:119:in 
`open'
         from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh.rb:67:in 
`start'
         from ssh1.rb:7