OpenSSH
[Top] [All Lists]

Re: X forwarding: trying to forward to busy local port

To: Lars Kruse <kruse@silicann.com>
Subject: Re: X forwarding: trying to forward to busy local port
From: Darren Tucker <dtucker@zip.com.au>
Date: Mon, 5 Feb 2007 23:34:55 +1100
Cc: openssh-unix-dev@mindrot.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
In-reply-to: <20070205124711.1ba64d02@jackdaw.neusy>
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
References: <20070201162824.6d5f8b77@jackdaw.neusy> <20070205124711.1ba64d02@jackdaw.neusy>
Reply-to: dtucker@zip.com.au
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
User-agent: Mutt/1.5.11
On Mon, Feb 05, 2007 at 12:47:11PM +0100, Lars Kruse wrote:
> Hi to all of you,
> 
> maybe my previous mail
> (http://permalink.gmane.org/gmane.network.openssh.devel/13345) was not
> clear enough, so I will try to summarize it more concisely:

I missed the original post but just went and reviewed it.

> If I use X-Frowarding, then the ssh-daemon offers DISPLAY settings,
> that can not be used. Thus resulting in "cannot connect ..." errors.
> 
> >From my point of view, the ssh-daemon should check, if (for example)
> port 6014 is available before it offers the DISPLAY "localhost:4".
> 
> This not-checking is especially ugly, as the ssh-daemon itself occupied
> the respective port during another X-Forwarding session.

It does check that it can bind to the port, though (see
x11_create_display_inet()).

I suspect the root of your problem is some funkiness with IPv6.  Note
that some of the listening sockets in your original post are listening
on ::1 and some on 127.0.0.1.

Do you have X11UseLocalhost set in sshd_config?  If so, what does
"localhost" resolve to?

If you can afford to do so you could try running without the ipv6
stack loaded.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>