trouble logging out when using protocol version 2
Jan-Frode Myklebust
janfrode at parallab.uib.no
Thu Sep 28 17:54:43 EST 2000
On Thu, Sep 28, 2000 at 10:03:27AM +1100, Damien Miller wrote:
> >
> > When I use protocol version 2 (by specifying "Protocol 2,1" in
> > ~/.ssh/config), I can establish connections properly, but they do not
> > shut down properly.
>
> Try the latest snapshot at http://www.mindrot.org/misc/openssh/
>
I'm seeing this with the latest snapshot also. The client is a Solaris 8
with Secure Shell 2.3.0, and the server is IRIX64 6.5.9m with
openssh-SNAP-2000092401.
If I do a:
client% ssh -v openssh-server
<cut'ing lots of debugging>
openssh-server% sleep 90 &
openssh-server% exit
debug: Ssh2ChannelSession/sshchsession.c:1306: received exit status : 0
Then the connection will hang until the sleep dies. And then it will
continue otputting this debugging:
debug: Ssh2Common/sshcommon.c:660: num_channels now 0
debug: Got session close with exit_status=0
debug: destroying client struct...
debug: uninitializing event loop
then it's finished.
Putting the server in verbose logging mode doesn't seem to give any useful
information:
Connection from 129.177.192.45 port 34063
datafellows: 2.3.0 SSH Secure Shell (non-commercial)
Enabling compatibility mode for protocol 2.0
Failed none for janfrode from 129.177.192.45 port 34063 ssh2
Failed none for janfrode from 129.177.192.45 port 34063 ssh2
Accepted password for janfrode from 129.177.192.45 port 34063 ssh2
[here's the 90 second hang]
Connection closed by remote host.
The same problem occurs if the client is openssh in -2 mode (on irix). The
debugging output I get here is:
openssh-server% sleep 90 &
openssh-server% exit
logout
debug: callback start
debug: client_input_channel_req: rtype exit-status reply 0
debug: callback done
[90 second hang]
debug: channel 0: rcvd eof
debug: channel 0: output open -> drain
debug: channel 0: rcvd close
debug: channel 0: input open -> closed
debug: channel 0: close_read
debug: channel 0: obuf empty
debug: channel 0: output drain -> closed
debug: channel 0: close_write
debug: channel 0: send close
debug: channel 0: full closed2
debug: channel_free: channel 0: status: The following connections are open:
#0 client-session (t4 r0 i8/0 o128/0 fd -1/-1)
debug: !channel_still_open.
Connection to dontask closed.
debug: Transferred: stdin 0, stdout 0, stderr 31 bytes in 34.3 seconds
debug: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.9
debug: Exit status 0
debug: writing PRNG seed to file /usr/people/jfm/.ssh/prng_seed
-jf
More information about the openssh-unix-dev
mailing list