Red Hat Bugzilla – Bug 1027197
X11 Forwarding does not work with default config - error: Failed to allocate internet-domain X11 display socket
Last modified: 2014-10-14 03:39:33 EDT
Description of problem:
X11 Forwarding does not work with default config.
Problem seems to be line in /etc/ssh/sshd_config:
Nov 6 11:50:13 test-rh6-x64 sshd: pam_unix(sshd:session): session opened for user root by (uid=0)
Nov 6 11:50:13 test-rh6-x64 sshd: error: Failed to allocate internet-domain X11 display socket.
debug1: session_input_channel_req: session 0 req x11-req
Failed to allocate internet-domain X11 display socket.
debug1: x11_create_display_inet failed.
Changing it to AddressFamily inet makes it working again. Descr from man sshd_config.
Specifies which address family should be used by sshd(8). Valid arguments are “any”, “inet” (use IPv4 only), or “inet6” (use IPv6
only). The default is “any”.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. default config, install xauth
2. ssh -X $remote # where remote is 6.5 RHEL
x11 forwarding broken
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.
There's missing one information in the reproducer, the remote RHEL-6 has to have loopback device without ipv6 ::1/128 address assigned (e.g. due to ipv6 disabled via sysctl or so). Otherwise it works as expected. Given that, my previous comment is not valid any more.
Jiri, can you confirm that x11 forwarding works if you enable ipv6 on lo or/and add ::1 address there (ip a a ::1/128 dev lo)?
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.