Bug 1027197 - X11 Forwarding does not work with default config - error: Failed to allocate internet-domain X11 display socket
X11 Forwarding does not work with default config - error: Failed to allocate ...
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openssh (Show other bugs)
Unspecified Unspecified
medium Severity high
: rc
: ---
Assigned To: Petr Lautrbach
Stanislav Zidek
Depends On:
  Show dependency treegraph
Reported: 2013-11-06 06:11 EST by Jiri Belka
Modified: 2014-10-14 03:39 EDT (History)
4 users (show)

See Also:
Fixed In Version: openssh-5.3p1-97.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-10-14 03:39:33 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jiri Belka 2013-11-06 06:11:50 EST
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.

             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):

How reproducible:

Steps to Reproduce:
1. default config, install xauth
2. ssh -X $remote # where remote is 6.5 RHEL

Actual results:
x11 forwarding broken

Expected results:
should work

Additional info:
Comment 2 RHEL Product and Program Management 2013-11-09 06:44:58 EST
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.
Comment 5 Petr Lautrbach 2014-06-19 06:39:54 EDT
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)?
Comment 8 errata-xmlrpc 2014-10-14 03:39:33 EDT
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.


Note You need to log in before you can comment on or make changes to this bug.