[Ssh-sftp-perl-users] help
Brought to you by:
dbrobins
From: Sam Y. <Sam...@aa...> - 2006-08-10 23:53:18
|
Hi There, I've recently downloaded and installed the Net::SSH::Perl module on one of our Unix platform: SunOS glbdev1 5.6 Generic_105181-28 sun4u sparc SUNW,Ultra-5_10 I've chosen the full feature and options during the installation so that it handles SSH1 and SSH2. I've also written up a quick test program: #-------------------------------------------- my $ssh=3DNet::SSH::Perl->new($host, 'protocol','1,2','use_pty',1,'debug',1,'interactive',0); if(!$ssh){ die "not ssh obj"; } my $s1=3D$ssh->login($user,$pass); my ($out,$error,$rcode) =3D $ssh->cmd($cmd); print "s1=3D$s1; out=3D$out; error=3D$error; rcode=3D$rcode\n"; #-------------------------------------------- During the testing against two remote Unix machines, I have problem with one of them as indicated on Item 2 (Server named glbncs5). The problem related to it stopped on the line "glbdev1: Algorithms, s->c: 3des-cbc hmac-sha1 none" for at least 5 minutes and slowly again to progress =66urther. So I am wondering why=3F And I could not figure it out on top of my mind. So if you have any information on this, would be very much appreciated. 1. Against Remote Server: glbncs4 ------------------------------------------------------------------------ ------------------ syang@glbdev1[121] perl58 stest.pl=20 glbdev1: Reading configuration data /home/syang/.ssh/config glbdev1: Reading configuration data /etc/ssh_config glbdev1: Connecting to glbncs4, port 22. glbdev1: Remote version string: SSH-1.99-OpenSSH_2.3.0p1 glbdev1: Remote protocol version 1.99, remote software version OpenSSH_2.3.0p1 glbdev1: Net::SSH::Perl Version 1.30, protocol version 1.5. glbdev1: No compat match: OpenSSH_2.3.0p1. glbdev1: Connection established. glbdev1: Waiting for server public key. glbdev1: Received server public key (1152 bits) and host key (1024 bits). glbdev1: Host 'glbncs4' is known and matches the host key. glbdev1: Encryption type: DES3 glbdev1: Sent encrypted session key. glbdev1: Received encryption confirmation. glbdev1: Trying RSA authentication with key 'syang@glbdev1' glbdev1: Server refused our key. glbdev1: Server refused our key. glbdev1: Trying password authentication. glbdev1: Requesting pty. glbdev1: Sending command: ls -l OneOffice glbdev1: Entering interactive session. s1=3Dxxx; out=3Dtotal 42 drwxrwsr-x 3 syang users 512 Aug 10 04:12 bin drwxrwsr-x 2 syang users 512 Aug 10 03:27 config drwxrwsr-x 2 syang users 512 Feb 8 2006 lock drwxrwsr-x 2 syang users 512 Feb 8 2006 log -rw-rw-r-- 1 syang sybase 8704 Jan 19 2006 oneoffice.cgi.tar -rw-rw-r-- 1 syang sybase 6144 Jan 19 2006 oneoffice.htdocs.tar drwxrwsr-x 2 syang users 512 Feb 8 2006 output drwxrwsr-x 2 syang users 512 Jan 13 2006 sql ; error=3D; rcode=3D0 ------------------------------------------------------------------------ ---------------- Above test works perfect, and fast. 2. Against Remote Server: glbncs5 ------------------------------------------------------------------------ ---------------- syang@glbdev1[123] perl58 stest.pl=20 glbdev1: Reading configuration data /home/syang/.ssh/config glbdev1: Reading configuration data /etc/ssh_config glbdev1: Connecting to glbncs5, port 22. glbdev1: Remote version string: SSH-2.0-OpenSSH_3.1p1 glbdev1: Remote protocol version 2.0, remote software version OpenSSH_3.1p1 glbdev1: Net::SSH::Perl Version 1.30, protocol version 2.0. glbdev1: No compat match: OpenSSH_3.1p1. glbdev1: Connection established. glbdev1: Sent key-exchange init (KEXINIT), wait response. glbdev1: Algorithms, c->s: 3des-cbc hmac-sha1 none glbdev1: Algorithms, s->c: 3des-cbc hmac-sha1 none <<<<<<<=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dstucked here for 5 minutes glbdev1: Entering Diffie-Hellman Group 1 key exchange. glbdev1: Sent DH public key, waiting for reply. glbdev1: Received host key, type 'ssh-dss'. glbdev1: Host 'glbncs5' is known and matches the host key. glbdev1: Computing shared secret key. glbdev1: Verifying server signature. glbdev1: Waiting for NEWKEYS message. glbdev1: Enabling incoming encryption/MAC/compression. glbdev1: Send NEWKEYS, enable outgoing encryption/MAC/compression. glbdev1: Sending request for user-authentication service. glbdev1: Service accepted: ssh-userauth. glbdev1: Trying empty user-authentication request. glbdev1: Authentication methods that can continue: publickey,password,keyboard-interactive. glbdev1: Next method to try is publickey. glbdev1: Trying pubkey authentication with key file '/home/syang/.ssh/id_dsa' glbdev1: Authentication methods that can continue: publickey,password,keyboard-interactive. glbdev1: Next method to try is publickey. glbdev1: Next method to try is password. glbdev1: Trying password authentication. glbdev1: Login completed, opening dummy shell channel. glbdev1: channel 0: new [client-session] glbdev1: Requesting channel_open for channel 0. glbdev1: channel 0: open confirm rwindow 0 rmax 32768 glbdev1: Got channel open confirmation, requesting shell. glbdev1: Requesting service shell on channel 0. glbdev1: channel 1: new [client-session] glbdev1: Requesting channel_open for channel 1. glbdev1: Entering interactive session. glbdev1: Sending command: ls -l OneOffice glbdev1: Requesting service exec on channel 1. glbdev1: channel 1: open confirm rwindow 0 rmax 32768 glbdev1: channel 1: rcvd eof glbdev1: channel 1: output open -> drain glbdev1: input_channel_request: rtype exit-status reply 0 glbdev1: channel 1: rcvd close glbdev1: channel 1: input open -> closed glbdev1: channel 1: close_read glbdev1: channel 1: obuf empty glbdev1: channel 1: output drain -> closed glbdev1: channel 1: close_write glbdev1: channel 1: send close glbdev1: channel 1: full closed s1=3D44; out=3Dtotal 42 drwxrwsr-x 3 syang users 512 Aug 10 04:12 bin drwxrwsr-x 2 syang users 512 Aug 10 03:27 config drwxrwsr-x 2 syang users 512 Feb 8 2006 lock drwxrwsr-x 2 syang users 512 Feb 8 2006 log -rw-rw-r-- 1 syang sybase 8704 Jan 19 2006 oneoffice.cgi.tar -rw-rw-r-- 1 syang sybase 6144 Jan 19 2006 oneoffice.htdocs.tar drwxrwsr-x 2 syang users 512 Feb 8 2006 output drwxrwsr-x 2 syang users 512 Jan 13 2006 sql ; error=3DMust be attached to terminal for 'am I' option ; rcode=3D0 ------------------------------------------------------------------------ -------------------------- This time is very very slow. 15 minutes in total. Kind Regards, Sam YANG System Analyst | Network Systems and Data Business & Technology Solutions AAPT Limited Ground Floor, 30 Ross Street, Glebe NSW 2037 Australia Tel: +61 2 9009 1103 Mob: +61 414 248 333 =46ax: +61 2 8284 9883 This communication, including any attachments, is confidential. If you are = not the intended recipient, you should not read it - please contact me = immediately, destroy it, and do not copy or use any part of this = communication or disclose anything about it. |