[Ssh-sftp-perl-users] Error Connecting with Net::SSH::Perl
Brought to you by:
dbrobins
From: David B. <db...@ua...> - 2004-05-20 19:33:59
|
Hi! I'm having some difficulty using Net::SSH::Perl against a specific host. The following code works fine against a Red Hat machine I have, but when I try to point it at our Packeteer and run it with -w, I get the error below and then the script hangs indefinitely. I know for a fact it never executes the command since I have asked it to to execute something that would leave a trace and there was no trace. #!/usr/bin/perl use Net::SSH::Perl; my $ssh = Net::SSH::Perl->new($host, options => ['protocol 2']); my $cmd = 'ls -al'; $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 Any ideas? Please reply directly to me, since I don't receive the list. Thanks, David Bruce Network Services Computing Service University of Arkansas (479) 575-2905 |