From: Jamis Buck Date: 2005-01-10T13:27:49+09:00 Subject: Re: Net::SSH Failure Vs. 0.6.0 On 12:16 Mon 10 Jan , otaku wrote: > Update Added the openssl-snapshot-20040726.tar.bz2 path to Ruby 1.8.2 > stable > and I still get the same errors as listed above > > using Net::SSH 0.1.0 the above example works > > However the above example code does not work with Net::SSH 0.6.0 > the above example code is straight out of the Net::SSH documentation > by the maintainer of the project Jamis Buck > any ideas anyone ???...... Yup, this is a bug that has been fixed and will be rolled out in the upcoming 0.9 release. The bug occurs because the code always tries to use the agent, even when no agent is running (or, in your case, when no agent is needed--you're giving the password explicitly). You can work around this by doing the following: Net::SSH.start( 'host', port, 'user', 'password', :auth_methods => "password" ) do |session| ... end In other words, if you explicitly specify the authentication method you want to use, the agent will never be attempted. The next release should (hopefully) be ready by late next week, or the week after that at the VERY latest. (I'm going to be pretty busy this week, so we'll see what happens.) Incidentally, if you want to play with the latest version of the code, it is now being hosted in a subversion repository: http://www.jamisbuck.org/svn/net-ssh - Jamis -- Jamis Buck jamis_buck@byu.edu http://www.jamisbuck.org/jamis ------------------------------ "I am Victor of Borge. You will be assimil-nine-ed."