[Ssh-sftp-perl-users] Bad packet length in Net::SSH::Perl
Brought to you by:
dbrobins
From: K B S. K. <shi...@in...> - 2007-12-11 16:02:10
|
> Hi, > > Thanks in advance. In case the answer is RTFM... I request you to > please please point me to the FM. > > I have an Fedora Core 3 and have installed Net::SSH::Perl successfully > from CPAN. I am using password authentication. However my script fails > during Diffie Hellman Group 1 Key Exchange with Bad Packet Length > Error. I am successfully able to connect via command line using > password authentication. > > Below is the verbose output of Net::SSH::Perl > > mustang: Reading configuration data /root/.ssh/config > mustang: Reading configuration data /etc/ssh_config > mustang: Allocated local port 1023. > mustang: Connecting to 192.168.14.79, port 22. > mustang: Remote version string: SSH-1.99-OpenSSH_3.9p1 > > mustang: Remote protocol version 1.99, remote software version > OpenSSH_3.9p1 > mustang: Net::SSH::Perl Version 1.30, protocol version 2.0. > mustang: No compat match: OpenSSH_3.9p1. > mustang: Connection established. > mustang: Sent key-exchange init (KEXINIT), wait response. > mustang: Algorithms, c->s: blowfish-cbc hmac-sha1 none > mustang: Algorithms, s->c: blowfish-cbc hmac-sha1 none > mustang: Entering Diffie-Hellman Group 1 key exchange. > mustang: Sent DH public key, waiting for reply. > Received disconnect message: Bad packet length 167772160. > at /usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Kex/DH1.pm line 41 > > > Here is the output (debug3) of the server. > > Dec 11 20:47:08 mustang sshd[3321]: debug3: fd 4 is not O_NONBLOCK > Dec 11 20:47:08 mustang sshd[3362]: debug1: rexec start in 4 out 4 > newsock 4 pipe 6 sock 7 > Dec 11 20:47:08 mustang sshd[3321]: debug1: Forked child 3362. > Dec 11 20:47:08 mustang sshd[3321]: debug3: send_rexec_state: entering > fd = 7 config len 367 > Dec 11 20:47:08 mustang sshd[3321]: debug3: ssh_msg_send: type 0 > Dec 11 20:47:08 mustang sshd[3321]: debug3: send_rexec_state: done > Dec 11 20:47:08 mustang sshd[3362]: debug1: inetd sockets after > dupping: 3, 3 > Dec 11 20:47:08 mustang sshd[3362]: Connection from 192.168.14.79 port > 1023 > Dec 11 20:47:08 mustang sshd[3362]: debug1: Client protocol version > 2.0; client software version 1.30 > Dec 11 20:47:08 mustang sshd[3362]: debug1: no match: 1.30 > Dec 11 20:47:08 mustang sshd[3362]: debug1: Enabling compatibility > mode for protocol 2.0 > Dec 11 20:47:08 mustang sshd[3362]: debug1: Local version string > SSH-1.99-OpenSSH_3.9p1 > Dec 11 20:47:08 mustang sshd[3362]: debug2: fd 3 setting O_NONBLOCK > Dec 11 20:47:08 mustang sshd[3362]: debug2: Network child is on pid > 3363 > Dec 11 20:47:08 mustang sshd[3362]: debug3: preauth child monitor > started > Dec 11 20:47:08 mustang sshd[3362]: debug3: mm_request_receive > entering > Dec 11 20:47:08 mustang sshd[3362]: debug1: do_cleanup > Dec 11 20:47:08 mustang sshd[3362]: debug1: PAM: cleanup > Dec 11 20:47:08 mustang sshd[3362]: debug3: PAM: sshpam_thread_cleanup > entering > > Shiv |