creal has asked for the wisdom of the Perl Monks concerning the following question:
Note. This is the section I changed in SSH2.PM->client_loop to print the packet_typeperlmgr: channel 7: new [client-session] perlmgr: Requesting channel_open for channel 7. perlmgr: Entering interactive session. After definition 1 perlmgr: Info - packet type: 91 perlmgr: Sending command: /usr/lbin/getprpw -m nullpw daemon perlmgr: Requesting service exec on channel 7. perlmgr: channel 7: open confirm rwindow 10000 rmax 16384 After definition 1 perlmgr: Info - packet type: 94 After definition 1 After definition 0 After definition 0 After definition 0
Note. This is the section I changed in IO::Select->select to show where it seems to lose it's waywhile (my $packet = Net::SSH::Perl::Packet->read_poll($ssh)) { if (my $code = $h->{ $packet->type }) { $ssh->debug("Info - packet type: " . $packet->type); $code->($cmgr, $packet); } else { $ssh->debug("Warning: ignore packet type " . $packet-> +type); } } last if $ssh->_quit_pending;
These are the last packets received, perlmgr being the server that the script is running on and unixmgr being the server that is being connected tomy $rb = defined $r ? $r->[VEC_BITS] : undef; my $wb = defined $w ? $w->[VEC_BITS] : undef; my $eb = defined $e ? $e->[VEC_BITS] : undef; print "After definition ".select($rb,$wb,$eb,$t)."\n"; if(select($rb,$wb,$eb,$t) > 0)
perlmgr -> unixmgr TCP D=22 S=43952 Ack=3107781192 Seq=12055 +90486 Len=0 Win=33304 Options=<nop,nop,tstamp 580143287 397338517> perlmgr -> unixmgr TCP D=22 S=43952 Ack=3107781192 Seq=12055 +90486 Len=88 Win=33304 Options=<nop,nop,tstamp 580143288 397338517> unixmgr -> perlmgr TCP D=43952 S=22 Ack=1205590574 Seq=31077 +81192 Len=0 Win=32768 Options=<nop,nop,tstamp 397338535 580143288> unixmgr -> perlmgr TCP D=43952 S=22 Ack=1205590574 Seq=31077 +81192 Len=48 Win=32768 Options=<nop,nop,tstamp 397338581 580143288> perlmgr -> unixmgr TCP D=22 S=43952 Ack=3107781240 Seq=12055 +90574 Len=0 Win=33304 Options=<nop,nop,tstamp 580143351 397338581>
20041214 Edit by ysth: code tags in readmore
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ssh connection hangs
by superfrink (Curate) on Dec 15, 2004 at 06:57 UTC | |
by Anonymous Monk on Dec 15, 2004 at 14:16 UTC |