From: Jamis Buck Date: 2004-12-03T00:40:59+09:00 Subject: Re: [ANN] Net::SSH 0.6.0 James Britt wrote: > Jamis Buck wrote: > >> Here's another release of Net::SSH, your friendly neighborhood >> pure-Ruby SSH2 client protocol implementation. > > > > Is this supposed to work on Windows with the 1-click installer? > > > Running this code: > > require 'rubygems' > require 'net/ssh' > > Net::SSH.start( 'jamesbritt.com', 'user', 'password' ) do |session| > result = session.exec( "ls -la " ) > puts result.data > end > > I get this error: > > c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-0.6.0/lib/net/ssh/transport/ossl/key-factory.rb:52:in > `initialize': wrong number of arguments (0 for 1) (ArgumentError) It looks like the version of the Ruby/OpenSSL module you have installed is not the right version... The RSA and DSA keys in the version in 1.8.2 allow for a no-argument constructor, whereas prior versions in did, and that's the problem you are seeing. Try this: ruby -ropenssl -e "OpenSSL::PKey::DSA.new" If that fails, then you know you've got the wrong version. If it succeeds...well, let me know. - Jamis -- Jamis Buck jgb3@email.byu.edu http://www.jamisbuck.org/jamis