ssh hangs after inactivity (maybe when connection is lost)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Steps to reproduce:
1. Open a terminal
2. Write:
ssh <email address hidden>
where myhost.com is some host where you have ssh access and user is the user name
3. Enter the password when prompted
4. Wait for several minutes or hours without doing anything
5. try to type something
Expected: either the connection is still alive, in which case you should be able to type, see what you type, and do things while logged on the remote machine, OR the connection has been closed due to inactivity, in which case ssh should show a message and gracefully quit.
Observed: ssh hangs; No message is shown; the remote machine's "prompt" is still shown and the cursor still blinks, but you are unable to type anything. You can't even quit ssh (typing "exit" has no effect) and return to normal local terminal operation. The only way out is to close the terminal (or open another one and kill the ssh process)
I guess this happens when the connection with the server is lost, probably closed by the server due to inactivity; however the client should detect this and gracefully exit.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: ssh (not installed)
ProcVersionSign
Uname: Linux 2.6.32-31-generic i686
NonfreeKernelMo
Architecture: i386
Date: Tue May 31 18:04:56 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: openssh
I am not able to reproduce on my systems, can you add your /etc/ssh/ sshd_config and /etc/ssh/ ssh_config?
Thanks
chuck