[Bug 1309] X11 forwarding doesn't work with X11UseLocalhost=no

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Apr 25 00:13:59 EST 2007


http://bugzilla.mindrot.org/show_bug.cgi?id=1309

           Summary: X11 forwarding doesn't work with X11UseLocalhost=no
           Product: Portable OpenSSH
           Version: 4.3p2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sshd
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: joss at debian.org


When setting "X11UseLocalhost no" in the configuration file - which is
necessary for our clusters - X11 forwarding stops working entirely.
Trying to connect to the TCP port it opens leads to "connection
refused".

The problem seems to be caused by IPv6 support: when forcing the server
to use only IPv4 addresses with "AddressFamily inet", X11 forwarding
works as expected.

With X11UseLocalhost=yes, the X11 tunnel binds itself to e.g. ::1:6014
in IPv6 and 127.0.0.1:6014 in IPv4 (for display :14.0). With
X11UseLocalhost=no, it binds to :::6014 in IPv6 and 0.0.0.0:6014 in
IPv4. I don't know IPv6 enough to tell, but I guess only the IPv4
version is correct.

I can reproduce this bug with RHEL4 (OpenSSH 3.9p1, Linux 2.6.9), SLES9
(OpenSSH 4.1, Linux 2.6.5) and Debian 4.0 (OpenSSH 4.3p2, Linux
2.6.18).




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the openssh-bugs mailing list