Bug 121

Summary: ssh hangs on exit (not damon, nor background)
Product: Portable OpenSSH Reporter: Joshua Mehlman <joshua.mehlman>
Component: sshAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED DUPLICATE    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: SPARC   
OS: Solaris   

Description Joshua Mehlman 2002-02-20 08:24:42 AEDT
ssh running on Solaris 2.8 ocasionaly hangs on exit. I run the command
ssh -v server hostname 
we have also seen this with different commands and even just getting a shell.
(note I have tryed with -t, -n and of course without the -v and a -v -v -v give
no more info)
and about 1 time out of 1000 it hangs.
The verbose output is as follows:
debug1: Sending command: hostname
debug1: channel 0: open confirm rwindow 0 rmax 16384
debug1: channel 0: rcvd eof
debug1: channel 0: output open -> drain
server
debug1: channel 0: obuf empty
debug1: channel 0: output drain -> closed
debug1: channel 0: close_write


Then comes the hang. Note that this is differnt than the bg file wait issue.

an netstat on the client:
client# netstat -a | grep server
client.34819        server.ssh         17520      0 33580      0 ESTABLISHED
client.34820        server.ssh         17520      0 33580      0 TIME_WAIT


and one on the server:
server# netstat -a | grep client
server.full.domain.name.com.ssh client.34819        33580      0 17520      0
ESTABLISHED

and some ps :
client# ps -ef | grep hostname
    root 19944  2917  0 12:32:19 ?        0:01 /usr/local/bin/ssh -n -v server
hostname

server# ps -ef | grep ssh
    root  3439 10524  0 12:32:21 ?        0:01 /services/ssh/sbin/sshd
Comment 1 Joshua Mehlman 2002-02-21 08:05:33 AEDT

*** This bug has been marked as a duplicate of 79 ***
Comment 2 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED