[Ssh-sftp-perl-users] SSH2 support for Net::SSH::Perl
Brought to you by:
dbrobins
From: Richard T. <Ric...@th...> - 2010-08-24 15:41:09
|
Hi, Now that I have got past my missing Class::ErrorHandler problem, I have a new one. When I run it, I get the following: #./ciscoprobe.pl : Reading configuration data /root/.ssh/config : Reading configuration data /etc/ssh_config : Connecting to XXX.XXX.XXX.XXX, 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. : Received host key, type 'ssh-rsa'. : Host 'XXX.XXX.XXX.XXX' is known and matches the host key. : Computing shared secret key. : Verifying server signature. : Waiting for NEWKEYS message. : Send NEWKEYS. : Enabling encryption/MAC/compression. : Sending request for user-authentication service. : Service accepted: ssh-userauth. : Trying empty user-authentication request. : Authentication methods that can continue: keyboard-interactive,password. : Next method to try is password. : Trying password authentication. : Login completed, opening dummy shell channel. : channel 0: new [client-session] : Requesting channel_open for channel 0. : channel 0: open confirm rwindow 1024 rmax 4096 : Got channel open confirmation, requesting shell. : Requesting service shell on channel 0. : channel 1: new [client-session] : Requesting channel_open for channel 1. : Entering interactive session. : Channel open failure: 1: reason 4: : channel 2: new [client-session] : Requesting channel_open for channel 2. : Entering interactive session. : Channel open failure: 2: reason 4: I tried with the $suppress_shell option turned on, my function call reads: $ssh->login($user,$pass,1); It resulted in: #./ciscoprobe.pl : Reading configuration data /root/.ssh/config : Reading configuration data /etc/ssh_config : Connecting to XXX.XXX.XXX.XXX, 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. : Received host key, type 'ssh-rsa'. : Host 'XXX.XXX.XXX.XXX' is known and matches the host key. : Computing shared secret key. : Verifying server signature. : Waiting for NEWKEYS message. : Send NEWKEYS. : Enabling encryption/MAC/compression. : Sending request for user-authentication service. : Service accepted: ssh-userauth. : Trying empty user-authentication request. : Authentication methods that can continue: keyboard-interactive,password. : Next method to try is password. : Trying password authentication. : Login completed, opening dummy shell channel. : channel 0: new [client-session] : Requesting channel_open for channel 0. : channel 0: open confirm rwindow 1024 rmax 4096 : channel 1: new [client-session] : Requesting channel_open for channel 1. : Entering interactive session. : Channel open failure: 1: reason 4: : channel 2: new [client-session] : Requesting channel_open for channel 2. : Entering interactive session. : Channel open failure: 2: reason 4: I hoped that the above and/or the advice in http://cpanforum.com/threads/851 would have helped me but I have not managed to make any progress. What I am unsure about the cpanforum advice, is just which lines to remove that comprise 'sub login -> removed the code to open a "dummy channel"' I also wonder how valid the advice is, because the thread was updated in 2006! If anyone has any ideas about what my problem could be or how valid the advice on the cpanforum forum, please could they let me know. Thanks in advance, Richard. 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 computer. -----Original Message----- From: Richard Thomas Sent: 24 August 2010 08:54 To: 'ssh...@li...'; 'Jeremy Kitchen' Subject: RE: [Ssh-sftp-perl-users] SSH2 support for Net::SSH::Perl Hi Jeremy, Thank you very much for pointing me in the right direction, it's amazing how simple it is to get past that issue! I will now be following the advice in the following article, as I'm getting the "Channel open failure: 1: reason 4:" error: http://cpanforum.com/threads/851 Thanks again, Richard. -----Original Message----- From: Jeremy Kitchen [mailto:ki...@sc...] Sent: 24 August 2010 01:17 To: ssh...@li... Subject: Re: [Ssh-sftp-perl-users] SSH2 support for Net::SSH::Perl On Aug 23, 2010, at 8:34 AM, Richard Thomas wrote: > 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. > #./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. install Class::ErrorHandler -Jeremy ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Ssh-sftp-perl-users mailing list Ssh...@li... https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users |