HPUX: ssh hangs after shell exit

Jason A . Dour jason at dour.org
Thu Jun 7 23:23:35 EST 2001


On Thu, Jun 07, 2001 at 01:34:26PM +0200, Markus Friedl wrote:
> On Tue, Jun 05, 2001 at 05:30:45PM -0400, Aaron Bush wrote:
> > 1) establish connection to sshd using ssh simply via "ssh remote-host"
> > 2) type exit in interactive shell on remote-host.
> > 3) "logout" is echoed to the terminal and the local shell prompt is NOT
> > echoed.
> > 4) type any other key, usually i just hit the space-bar. <<--PROBLEM IS
> > HERE
> > 5) "Connection to remote-host closed." is echoed to the terminal
> > followed by the local shell prompt.
> 
> do you have
> 	ssh -v -v -v remote-host
> traces?

I have HP/UX 11.00 installed on my machines at work, and I recently
began deploying OpenSSH to them.  I compiled it on our Development
machine, and deployed it via tar/ftp to other machines.

Our Devel machine does not exhibit the hang.  However, our secondary
development machine DOES exhibit the hang.  Both of them have the
same OS and patch-level as far as I can tell.  Here's the debug
output for the close of the sessions.

FROM C3P0 TO DEVEL -- NO HANG:
> ^[[1m-- jdour at devel (1/0) -- ~ --^[[0m^M^M
> ^[[1m-:^[[0m logout^M
> Logging out.^M
> debug1: channel 0: rcvd eof^M
> debug1: channel 0: output open -> drain^M
> debug1: client_input_channel_req: channel 0 rtype exit-status reply 0^M
> debug1: channel 0: rcvd close^M
> debug1: channel 0: input open -> closed^M
> debug1: channel 0: close_read^M
> debug2: channel 0: no data after CLOSE^M
> debug1: channel 0: obuf empty^M
> debug1: channel 0: output drain -> closed^M
> debug1: channel 0: close_write^M
> debug1: channel 0: send close^M
> debug1: channel 0: is dead^M
> debug1: channel_free: channel 0: status: The following connections are open:^M
>   #0 client-session (t4 r0 i8/0 o128/0 fd -1/-1)^M
> ^M
> debug1: channel_free: channel 0: dettaching channel user^M
> Connection to devel closed.^M^M
> debug1: Transferred: stdin 0, stdout 0, stderr 29 bytes in 3.2 seconds^M^M
> debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 9.1^M^M
> debug1: Exit status 0^M^M
> debug1: writing PRNG seed to file /home/jdour/.ssh/prng_seed^M^M
> ^[[1m-- jdour at c3p0 (ttyp1/0) -- ~ --^[[0m^M^M
> ^[[1m-:^[[0m exit^M

FROM DEVEL TO C3P0 -- WITH HANG:
> ^[[1m-- jdour at c3p0 (0/0) -- ~ --^[[0m^M^M
> ^[[1m-:^[[0m logout^M
> Logging out.^M
> debug1: channel 0: rcvd eof^M
> debug1: channel 0: output open -> drain^M
> debug1: channel 0: obuf empty^M
> debug1: channel 0: output drain -> closed^M
> debug1: channel 0: close_write^M		<##### HANG OCCURS HERE!
> debug1: client_input_channel_req: channel 0 rtype exit-status reply 0^M
> debug1: channel 0: rcvd close^M
> debug1: channel 0: input open -> closed^M
> debug1: channel 0: close_read^M
> debug2: channel 0: no data after CLOSE^M
> debug1: channel 0: send close^M
> debug1: channel 0: is dead^M
> debug1: channel_free: channel 0: status: The following connections are open:^M
>   #0 client-session (t4 r0 i8/0 o128/0 fd -1/-1)^M
> ^M
> debug1: channel_free: channel 0: dettaching channel user^M
> Connection to c3p0 closed.^M^M
> debug1: Transferred: stdin 0, stdout 0, stderr 28 bytes in 9.4 seconds^M^M
> debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 3.0^M^M
> debug1: Exit status 0^M^M
> debug1: writing PRNG seed to file /home/jdour/.ssh/prng_seed^M^M
> ^[[1m-- jdour at devel (ttyp1/0) -- ~ --^[[0m^M^M
> ^[[1m-:^[[0m di^[[D ^[[D^[[D ^[[Dexit^M

That's what I have...  Any suggestions?


Cheers,
Jason
# "Jason A. Dour" <jason at dour.org>                  http://dour.org/
# Founder / Executive Producer - PJ Harvey Online - http://pjh.org/



More information about the openssh-unix-dev mailing list