bugzilla-daemon at mindrot.org
2014-Mar-20 09:31 UTC
[Bug 2213] New: X11 forwarding to DISPLAY containing a hexadecimal-colon IPv6 address fails
https://bugzilla.mindrot.org/show_bug.cgi?id=2213 Bug ID: 2213 Summary: X11 forwarding to DISPLAY containing a hexadecimal-colon IPv6 address fails Product: Portable OpenSSH Version: -current Hardware: Other OS: Linux Status: NEW Severity: normal Priority: P5 Component: ssh Assignee: unassigned-bugs at mindrot.org Reporter: hektor at itc.rwth-aachen.de If an IPv6 host has no AAAA DNS entry the DISPLAY variable might contain a hexadecimal/colon address. The function x11_connect_display() in channels.c determins the "hostname" in the DISPLAY variable by searching for the *first* colon occurence (line 3550 in that file): cp = strchr(buf, ':'); This seems to be incompatible with the representation of IPv6 addresses. The resulting error produces an error message which can be attributed to the debug2 statement later in that function (line 3582): connect 2001 port 6006: Invalid argument Error: Can't open display: localhost:10.0 A workaround is documented here: http://www.technologische-hilfe.de/antworten/lightdm-xdm-sitzung-und-ipv6-support-241428392.html My guess is that the problem can be solved by using strrchr in that statement: cp = strrchr(buf, ':'); -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2014-Mar-21 07:41 UTC
[Bug 2213] X11 forwarding to DISPLAY containing a hexadecimal-colon IPv6 address fails
https://bugzilla.mindrot.org/show_bug.cgi?id=2213 --- Comment #1 from jens Hektor <hektor at itc.rwth-aachen.de> --- Forgot to mention the scenario: we have XDMCP Clients with IPv6. If we use SSH from the XDMCP server X11 on remote hosts fails. -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2014-Nov-24 14:18 UTC
[Bug 2213] X11 forwarding to DISPLAY containing a hexadecimal-colon IPv6 address fails
https://bugzilla.mindrot.org/show_bug.cgi?id=2213 jens Hektor <hektor at itc.rwth-aachen.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hektor at itc.rwth-aachen.de --- Comment #2 from jens Hektor <hektor at itc.rwth-aachen.de> --- Created attachment 2513 --> https://bugzilla.mindrot.org/attachment.cgi?id=2513&action=edit Fixes Bug in client when $DISPLAY contains IPv6 address -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2014-Nov-24 14:20 UTC
[Bug 2213] X11 forwarding to DISPLAY containing a hexadecimal-colon IPv6 address fails
https://bugzilla.mindrot.org/show_bug.cgi?id=2213 --- Comment #3 from jens Hektor <hektor at itc.rwth-aachen.de> --- The patch has been test here and is against openssh-6.7p1 -- You are receiving this mail because: You are watching the assignee of the bug.