Bug 19837 - logout w/ openssh and background job locks up
Summary: logout w/ openssh and background job locks up
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: openssh
Version: 7.0
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2000-10-26 00:46 UTC by JLapham
Modified: 2008-05-01 15:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2000-11-27 12:58:45 UTC

Attachments (Terms of Use)

Description JLapham 2000-10-26 00:46:50 UTC
OpenSSH cannot return to the local shell if running a background job on the
remote machine.  This problem is very easy to reproduce.

Between 2 RH7 machines, login via OpenSSH.  Type "sleep 30 &" and logout.
Your shell on the local machine will not appear until the 30s has transpired.

Now, you can imagine how annoying this is when running a 2 day calculation!

PS: another issue I've noticed with OpenSSH on RH7 is that it appears the
"KeepAlive" directive is not being honored.  I keep getting openssh
sessions cut short by my firewall's timeout period, this never happened
with other OpenSSH's I've installed.  Okay, should I enter this as a
seperate bug?

Comment 1 Tim Waugh 2000-10-26 13:54:41 UTC
This evens happens with X forwarding turned off and with backgrounded jobs run
through nohup.

Comment 2 JLapham 2000-10-26 16:04:33 UTC
Here are few links which may be useful in debugging this problem.

The base link to the archives for the OpenSSH developer mailing list:

A thread within this archive that somewhat mentions this very problem (from Sept

A quick summary of the above thread is:
1) it appears it only appears when using ssh protocol 2
2) this bug also appeared for someone using the ssh client from ssh.com to an
openssh server.  So, it appears to not be client related...?
3) this bug appears not to be linux related b/c it has affected someone
connecting between Solaris and IRIX.

Comment 3 Pekka Savola 2000-10-28 15:35:53 UTC
This has been fixed in the latest OpenSSH snapshots.

OpenSSH 2.3.0p1 should be out soonish (<week), but I'm not sure if this warrants an errata release.

Comment 4 JLapham 2000-10-28 16:11:05 UTC
Thanks for the update, it is great to hear that this has been fixed by the
openssh people.

Now, as for whether or not this is worthy of an errata update, I would argue
that it is.  I (and many others) do most of my (their) remote administration
tasks via ssh, and I am constantly having to kill shell processes b/c of this
bug.  For example, starting a /etc/rc.d/init.d process triggers this bug, such
as starting apache or the ftp daemon.

How is RH7 supposed to be taken seriously for a "remotely administrat-able"
server environment with this bug?

Now, one other point to ponder.  What happens to intermediate shells when you
piggy-back through computers using ssh and this bug triggers?  For instance,
while on computer #1, I ssh to computer #2, then ssh from #2 to computer #3.
While logging out of #3 my shell locks up.  What happens to the shell on
computer #2?  This is a very common situation with through-firewall system
admin.  What a nightmare!  Now, imagine you have many, many machines.... (this
is my situation).

Clearly, regardless of what RH decides to do, I will be upgrading to 2.3.0p1
when it comes out.  Thanks again pekkas for the news.

Comment 5 Daniel Roesen 2000-10-30 17:48:52 UTC
I also strongly second the request for an errata update, as there are some more 
outstanding bugfixes with different severity/impact are pending. I specially 
recall problems with UseLogin.

Comment 6 Pekka Savola 2000-10-30 19:07:58 UTC
All known problems with UseLogin I'm aware of should have been fixed in OpenSSH 2.2.0p1 errata
release already.

There are, of course, other issues fixed.. :-)

Comment 7 Pekka Savola 2000-11-07 06:38:01 UTC
FWIW, OpenSSH-2.3.0p1 was released today.

Comment 8 JLapham 2000-11-14 00:21:15 UTC
http://OpenSSH Security Advisory

Comment 9 JLapham 2000-11-14 00:23:07 UTC
oops, that URL was supposed to be:

Comment 10 Daniel Roesen 2000-11-14 01:37:56 UTC
This vulnerability has it's own Bug ID #20805 :-]

Comment 11 JLapham 2000-11-27 12:20:55 UTC
This bug can be marked resolved, as the recent update,
openssh-2.2.0p1-5.i386.rpm, solves the problem.  I seem to not have the ability
to do this myself, or I would.

Comment 12 JLapham 2000-11-27 12:58:43 UTC
...oops again, the openssh update that solves this bug was v2.3.0, not v2.2.0...

Comment 13 Daniel Roesen 2000-11-27 13:28:41 UTC

Comment 14 Daniel Roesen 2000-11-27 13:31:55 UTC
BTW... shouldn't
include this bug ID as fixed?

Note You need to log in before you can comment on or make changes to this bug.