x11 Forwarding fails with error: Failed to allocate internet-domain X11 display socket
Issue
- When attempting to connect to a server via ssh and forward or tunnel X windows protocol, the command fails with the following error appearing in
/var/log/secure:
Jun 23 11:50:18 hostname.localdomain sshd[1811]: error: Failed to allocate internet-domain X11 display socket.
The connection on the client end is abruptly closed with no diagnostic output being displayed.
- This occurs even while X11Forwarding is correctly set in /etc/ssh/sshd_config on the remote machine:
X11Forwarding yes
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
