[Bug 882878] Re: With IPv6 disabled, openssh will not forward X connections
ChristianEhrhardt
882878 at bugs.launchpad.net
Wed Aug 30 06:25:41 UTC 2017
Reply from Petr, that is not auto-added due to not having a LP user, quoting:
"It's mainly me not pushing it (too busy to do it properly, but you're right, it's a shame). I actually found upstream bug: https://bugzilla.mindrot.org/show_bug.cgi?id=2143
Attached patch is pretty much what has been hanging in the upstream
bugzilla for the last 4 years.
Thanks
Cheers"
** Bug watch added: OpenSSH Portable Bugzilla #2143
https://bugzilla.mindrot.org/show_bug.cgi?id=2143
** Also affects: openssh via
https://bugzilla.mindrot.org/show_bug.cgi?id=2143
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/882878
Title:
With IPv6 disabled, openssh will not forward X connections
Status in portable OpenSSH:
Unknown
Status in openssh package in Ubuntu:
Confirmed
Status in openssh package in Debian:
New
Status in openssh package in openSUSE:
Fix Released
Bug description:
If you disable IPv6 in /etc/sysctl.conf sshd will not forward X11.
It logs the failue in /var/log/auth.log
Oct 27 18:49:26 uscps002 sshd[14722]: Accepted password for root from 172.20.10.50 port 60322 ssh2
Oct 27 18:49:26 uscps002 sshd[14722]: pam_unix(sshd:session): session opened for user root by (uid=0)
Oct 27 18:49:27 uscps002 sshd[14722]: error: Failed to allocate internet-domain X11 display socket.
Aparently the compiled sshd version will not try an ipv4 localhost if
an ipv6 localhost does not exist.
Placing the following line in /etc/ssh/sshd_config fixes the issue
X11UseLocalHost no
root at uscps002:/var/log# lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
root at uscps002:/var/log#
root at uscps002:/var/log# uname -a
Linux uscps002 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
To manage notifications about this bug go to:
https://bugs.launchpad.net/openssh/+bug/882878/+subscriptions
More information about the foundations-bugs
mailing list