[Ssh-sftp-perl-users] SSH2 support for Net::SSH::Perl
Brought to you by:
dbrobins
From: Richard T. <Ric...@th...> - 2010-08-23 16:09:06
|
Hi, Does anyone know why I am getting a problem with SSH2 please? I have been running a script to connect to an SSH1 device and it's stopped working since the device has been upgraded to SSH2. I have version 1.34 of Net::SSH::Perl, So I changed my "new" line of code to the following: my $ssh = Net::SSH::Perl->new($hostip, privileged => 0, protocol => 2, debug => 1); What I get when I run it like that is: #./ciscoprobe.pl : Reading configuration data /root/.ssh/config : Reading configuration data /etc/ssh_config : Connecting to 80.40.141.19, port 22. : Remote protocol version 2.0, remote software version Cisco-1.25 : Net::SSH::Perl Version 1.34, protocol version 2.0. : No compat match: Cisco-1.25. : Connection established. : Sent key-exchange init (KEXINIT), wait response. : Algorithms, c->s: 3des-cbc hmac-sha1 none : Algorithms, s->c: 3des-cbc hmac-sha1 none : Entering Diffie-Hellman Group 1 key exchange. : Sent DH public key, waiting for reply. Key class 'Net::SSH::Perl::Key::RSA' is unsupported: Base class package "Class::ErrorHandler" is empty. (Perhaps you need to 'use' the module which defines that package first.) at /usr/lib/perl5/vendor_perl/5.8.8/Convert/PEM.pm line 5 BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/Convert/PEM.pm line 5, <GEN0> line 1. Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/Net/SSH/Perl/Key/RSA.pm line 21, <GEN0> line 1. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/Net/SSH/Perl/Key/RSA.pm line 21, <GEN0> line 1. Compilation failed in require at (eval 37) line 1, <GEN0> line 1. BEGIN failed--compilation aborted at (eval 37) line 1, <GEN0> line 1. So I added "use Net::SSH::Perl::Key::RSA;" to my script and I got: #./ciscoprobe.pl Base class package "Class::ErrorHandler" is empty. (Perhaps you need to 'use' the module which defines that package first.) at /usr/lib/perl5/vendor_perl/5.8.8/Convert/PEM.pm line 5 BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/Convert/PEM.pm line 5. Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/Net/SSH/Perl/Key/RSA.pm line 21. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/Net/SSH/Perl/Key/RSA.pm line 21. Compilation failed in require at ./ciscoprobe.pl line 18. BEGIN failed--compilation aborted at ./ciscoprobe.pl line 18. I then added "use Class::ErrorHandler;" to my script and I got: #./ciscoprobe.pl Can't locate Class/ErrorHandler.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./ciscoprobe.pl line 16. BEGIN failed--compilation aborted at ./ciscoprobe.pl line 16. Please could you let me know if there is anything you can think of that I can do to get this working to our SSH2 devices. Thanks in advance. Richard. Click here<http://the-logic-group-news.com/7O0-3I9/s.aspx> to register for our whitepaper on new approaches to PCI DSS, end-to-end encryption and tokenisation. New secure payment solutions from The Logic Group that help reduce the data considered in scope and the cost of compliance. [http://www.the-logic-group.com/CP/UploadedImages/75bd388c-1f27-41f4-8f68-adf034d0b2ea.jpg] <http://www.the-logic-group.com/CP/UploadedImages/75bd388c-1f27-41f4-8f68-adf034d0b2ea.jpg> The Logic Group Enterprises Limited, Logic House, Waterfront Business Park, Fleet Road, Fleet, Hampshire, GU51 3SB, United Kingdom. Registered in England. Registered No. 2609323 The information in this email and any attachments are confidential and may be legally privileged and protected by law. It is for the intended recipient only. If you are not the intended recipient you may not use, disclose, copy, distribute, print or rely on the content of this email or its attachments. If this email has been received by you in error please advise the sender and delete the email from your system. |