From owner-freebsd-stable Thu May 30 17: 1:40 2002 Delivered-To: freebsd-stable@freebsd.org Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by hub.freebsd.org (Postfix) with ESMTP id 68F0937B401 for ; Thu, 30 May 2002 17:01:34 -0700 (PDT) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id g4V01Up71666; Thu, 30 May 2002 17:01:30 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.6/8.11.0) id g4V01UM38350; Thu, 30 May 2002 17:01:30 -0700 (PDT) (envelope-from jdp) Date: Thu, 30 May 2002 17:01:30 -0700 (PDT) Message-Id: <200205310001.g4V01UM38350@vashon.polstra.com> To: stable@freebsd.org From: John Polstra Cc: kris@obsecurity.org Subject: Re: ssh + X11 forwarding = a hung ssh process In-Reply-To: <20020530164114.A1623@xor.obsecurity.org> References: <20020530164114.A1623@xor.obsecurity.org> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <20020530164114.A1623@xor.obsecurity.org>, Kris Kennaway wrote: > On Thu, May 30, 2002 at 09:10:08AM -0700, John Polstra wrote: > > For example: my desktop machine is "strings" and the other machine > > is "thin". I start an xterm like this: > > > > strings$ ssh thin xterm > > > > Now I exit the xterm by typing "logout" into it. The xterm goes away, > > but the ssh command does not exit. It just sits there until I kill > > it. > > I think it's intentional; the ssh tunnel needs to stay open so it can > do X11 connection forwarding. Nah, I don't agree with that. The ssh process should stay around as long as there is an X11 connection open, but it should die when the last tunneled X11 connection is closed (i.e., when the remote xterm exits). That's what it's traditionally done, and that's the more useful behavior. John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message