RE: [Ssh-sftp-perl-users] SSH connection to Cisco device
Brought to you by:
dbrobins
From: Eric L. <net...@er...> - 2006-02-02 19:55:20
|
> > use Net::SSH::Perl; > my $ssh = Net::SSH::Perl->new('10.x.x.x', options > => ['Port 22']); > $ssh->login('USERNAME', 'PASSWORD'); > my($stdout, $stderr, $exit) = $ssh->cmd('sh ver'); > print $stdout; > > ERROR: > Can't locate Math/GMP.pm in @INC (@INC contains: You need to install Math::GMP before you install Net::SSH::Perl > C:/Perl/lib C:/Perl/site/lib .) > at C:/Perl/site/lib/Net/SSH/Perl/Util/SSH1MP.pm line > 7, <GEN0> line 1. > BEGIN failed--compilation aborted at > C:/Perl/site/lib/Net/SSH/Perl/Util/SSH1MP.p > m line 7, <GEN0> line 1. > Compilation failed in require at > C:/Perl/site/lib/Net/SSH/Perl/Util.pm line 56, > <GEN0> line 1. > BEGIN failed--compilation aborted at > C:/Perl/site/lib/Net/SSH/Perl/Key/RSA1.pm l > ine 6, <GEN0> line 1. > Compilation failed in require at > C:/Perl/site/lib/Net/SSH/Perl/SSH1.pm line 13, > <GEN0> line 1. > BEGIN failed--compilation aborted at > C:/Perl/site/lib/Net/SSH/Perl/SSH1.pm line > 13, <GEN0> line 1. > Compilation failed in require at > C:/Perl/site/lib/Net/SSH/Perl.pm line 55, <GEN0 > > line 1. Also looks like your Net::SSH::Perl isn't properly installed. |