ssh/sshd hang after "debug2: channel 0: open confirm rwindow 0 rmax 32768"

Bruce Allen ballen at gravity.phys.uwm.edu
Sun Mar 16 22:54:25 EST 2008


Hi Damien,

Thanks for your note.

>> (1) My hotel's IP (Pasadena Hilton, service from AT&T) is NOT properly
>> registered in DNS:
>>
>>     ballen$ nslookup
>>    > 12.191.122.167
>>     Server:         85.37.17.16
>>     Address:        85.37.17.16#53
>>     ** server can't find 167.122.191.12.in-addr.arpa: NXDOMAIN
>>
>> (2) On opensshd version 4.8, turning UseDNS off makes no difference.
>>      Is there some other config switch I should try?
>>
>> (3) I CAN connect to an opensshd version 3.6 ssh daemon.
>>
>> (4) As far as I can tell, the sshd_config files being used for the v 3.6
>>      and v 4.8 sshd servers have only unimportant differences.
>>
>> Any further thoughts or suggestions?  I have a few more days in the hotel
>> so I can try some other things.
>
> You could try to strace/truss or ltrace the server to see where it is 
> stopping.

I should be able to strace this process in a little while. For the moment 
I've got sshd debug output from a successful connection to the opensshd 
v4.8 server from outside the hotel, and sshd debug output from a failed 
connection to the opensshd v4.8 server from within the hotel.  Here is 
where they diverge:

FAILED CONNECTION FROM HOTEL (opensshd 4.8)

debug2: User child is on pid 3035
debug3: mm_request_receive entering
debug1: temporarily_use_uid: 501/500 (e=0/500)
debug1: restore_uid: 0/500
debug1: permanently_set_uid: 501/500
debug2: set_newkeys: mode 0
debug2: set_newkeys: mode 1
debug1: Entering interactive session for SSH2.
debug2: fd 6 setting O_NONBLOCK
debug2: fd 7 setting O_NONBLOCK
debug1: server_init_dispatch_20
debug1: server_input_channel_open: ctype session rchan 0 win 65536 max 16384
debug1: input_session_request
debug1: channel 0: new [server-session]
debug1: session_new: init
debug1: session_new: session 0
debug1: session_open: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session
Read error from remote host 12.191.122.167: Connection reset by peer
debug1: do_cleanup
debug1: removing gssapi cred file"/tmp/x509up_p3035.filehEOFbn.1"
debug1: do_cleanup



SUCCESSFUL CONNECTION FROM CALTECH (opensshd 4.8)

debug1: server_input_channel_open: ctype session rchan 0 win 65536 max 16384
debug1: input_session_request
debug1: channel 0: new [server-session]
debug1: session_new: init
debug1: session_new: session 0
debug1: session_open: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session
debug1: server_input_channel_req: channel 0 request x11-req reply 0
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req x11-req
debug2: bind port 6010: Address already in use
debug2: bind port 6010: Address already in use
debug2: bind port 6011: Address already in use
debug2: bind port 6011: Address already in use
debug2: fd 8 setting O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 1: new [X11 inet listener]
debug2: fd 9 setting O_NONBLOCK
debug3: fd 9 is O_NONBLOCK
debug1: channel 2: new [X11 inet listener]

<and still more, but you can see where they start to differ>

Cheers,
 	Bruce


More information about the openssh-unix-dev mailing list