[Ssh-sftp-perl-users] SSH connection to Cisco device
Brought to you by:
dbrobins
From: Steven H. <hes...@ya...> - 2006-02-02 19:50:53
|
I'm a newbie so have mercy on me! Any guidance would be appreciated (BTW-I'm googled out on this issue). :P I would like to know how to make a simple SSH (v.1 3DES) conection to a Cisco switch. I am running windows XP with ActivePerl v5.8.7. I have installed 'Net-SSH-Perl' version 1.23_01. Are there any other packages/modules that I need to install? Incorrect code?? I am currently using Repositories: [1] ActiveState Package Repository [2] soulcage CODE: 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: 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. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |