ssh – DISPLAY is not set – Failed to allocate internet-domain X11 display socket
|06-Nov-2011||Posted by Sonia Hamilton under Ssh, Ubuntu|
A little ssh error I came across while trying to work remotely on an Ubuntu machine. ssh X Display Forwarding wasn’t working, and I was getting an error:
DISPLAY is not set
Digging through /var/log/auth.log, I also noticed this error:
Failed to allocate internet-domain X11 display socket
After much Googling, it seems that IPv6 was causing the problem. It was solved by adding:
to /etc/ssh/sshd_config, and restarting the ssh server.