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: -%- #AddressFamily any -%- -%- Nov 6 11:50:13 test-rh6-x64 sshd[2509]: pam_unix(sshd:session): session opened for user root by (uid=0) Nov 6 11:50:13 test-rh6-x64 sshd[2509]: 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. -%- AddressFamily 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): openssh-server-5.3p1-94.el6.x86_64 redhat-release-server-6Server-6.5.0.1.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. default config, install xauth 2. ssh -X $remote # where remote is 6.5 RHEL 3. Actual results: x11 forwarding broken Expected results: should work Additional info:
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. http://rhn.redhat.com/errata/RHSA-2014-1552.html