Re: [Ssh-sftp-perl-users] Error Connecting with Net::SSH::Perl
Brought to you by:
dbrobins
From: Dave R. <au...@ur...> - 2004-05-20 19:58:36
|
On Thu, 20 May 2004, David Bruce wrote: > use Net::SSH::Perl; > > my $ssh = Net::SSH::Perl->new($host, options => ['protocol 2']); This could (and probably should) be written as my $ssh = Net::SSH::Perl->new($host, protocol => 2); I don't think setting the protocol via an option will work, since it has to be known during object creation to work. > $ssh->login($user, $pass); > > my($stdout, $stderr, $exit) = $ssh->cmd($cmd); > print $stdout; > > Error: > Argument "ssh-rsa" isn't numeric in numeric eq (==) at > /usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Key/RSA1.pm line 94, <FH> > line 15 This shouldn't be a fatal error, but I think it may be a bug in the code. Grr, if it only had a test suite ... -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/ |