← Back to team overview

touch-packages team mailing list archive

[Bug 790774] Re: ssh hangs after inactivity (maybe when connection is lost)

 

I don't know why this was closed for inactivity. I provided the
information I was asked for, so this hould not have remnained in the
Incomplete state in the first place.

I can still reproduce this, systematically, and I have observed it on
several machines and with several servers (with different linux
distributions and from different hosting providers). So I'm going to
change this to "confirmed".

There is one thing worth noting, though: this seems to happen when the client is connected via WIFI (to a LAN connected to the Internet, of course), but not when connected via an ethernet cable.
So, I guess this may be triggered by a network connection issue, not by the server closing the connection?
In ANY case, the client should show a meaningful error message and quit, if the connection really is broken: not doing so is a bug for sure; and it doesn't seem there's a good reason for it breaking in the first place, either.

@zulcss please could you try if you can reproduce it when connected via
wifi?

** Changed in: openssh (Ubuntu)
       Status: Expired => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/790774

Title:
  ssh hangs after inactivity (maybe when connection is lost)

Status in openssh package in Ubuntu:
  Confirmed

Bug description:
  Steps to reproduce:

  1. Open a terminal
  2. Write:
    ssh user@xxxxxxxxxx
  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)
  ProcVersionSignature: Ubuntu 2.6.32-31.61-generic 2.6.32.32+drm33.14
  Uname: Linux 2.6.32-31-generic i686
  NonfreeKernelModules: nvidia
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/790774/+subscriptions