From: "Jochen Immendörfer" Date: 2004-07-13T01:24:42+09:00 Subject: Re: [ANN] Net::SSH 0.0.3 Thank you for the quick reply. The additional require made it work for me. But another question: I've got my system configured with public and private keys the way that I can connect without password. Itworks from the command-line. But Net::SSH.start('localhost') produces the error: OpenSSL::PKey::PKeyError: wrong public key type from /usr/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh/service/userauth.rb:207:in `sign' from /usr/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh/service/userauth.rb:207:in `try_publickey_auth_with' from /usr/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh/service/userauth.rb:181:in `try_publickey_auth' from /usr/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh/service/userauth.rb:180:in `each' from /usr/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh/service/userauth.rb:180:in `try_publickey_auth' from /usr/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh/service/userauth.rb:114:in `process' from /usr/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh.rb:123:in `open' from /usr/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh.rb:67:in `start' from (irb):2 what is the 'right' public key type? I created my keys with ssh-keygen -t dsa Is that wrong? regards, jochen Am Montag 12 Juli 2004 17:25 schrieb Jamis Buck: > > Just be sure to require 'net/ssh/service/forward' first: > > require 'net/ssh/service/forward' > p Net::SSH::Service::PortForwardManager > > I figured port forwarding would be an "optional" service, which people > should explicitly require before using. This keeps the overhead of > requiring 'net/ssh' low. > > Again, sorry for the lack of documentation. :(