Date: Thu, 30 May 2002 18:32:53 -0700 (PDT) From: John Polstra <jdp@polstra.com> To: stable@freebsd.org Cc: mike@adept.org Subject: Re: ssh + X11 forwarding = a hung ssh process Message-ID: <200205310132.g4V1Wrw38438@vashon.polstra.com> In-Reply-To: <20020530170501.A37186-100000@snafu.adept.org> References: <20020530170501.A37186-100000@snafu.adept.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <20020530170501.A37186-100000@snafu.adept.org>,
Mike Hoskins <mike@adept.org> wrote:
> On Thu, 30 May 2002, John Polstra wrote:
>
> > 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.
>
> I see what I've always observed,
>
> mike@mojo{mike}$ ssh -C -X snafu.adept.org xterm
> mike@snafu.adept.org's password:
> <xterm pops up>
> <hit ctrl-d>
> Waiting for forwarded connections to terminate...
> The following connections are open:
> #1 X11 connection from snafu.adept.org port 2758 (t4 r0 i4/0 o16/0 fd 8/8)
>
> If you try to close the tunnel while X sessions are active, you get
> alerted of the open sessions. Otherwise, as in this case, things close
> normally.
It only happens when protocol version 2 is used. Try forcing that
with "ssh -2 ...", and there's a good chance you'll see the problem.
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205310132.g4V1Wrw38438>
