My case:

# Go to workstation
r...@laptop:~$ ssh -X workstation

# Check for $DISPLAY
r...@workstation:~$ env | grep DISPLAY || echo "No display found"
No display found

# Check log
workstation:~$ sudo -s
workstation:~# grep X11 /var/log/auth.log
Sep 23 16:33:10 workstation sshd[14105]: error: Failed to allocate 
internet-domain X11 display socket.

# Yes, it is!

# Check ipv6 suppport
r...@workstation:~# sysctl net.ipv6.conf.all.disable_ipv6 
net.ipv6.conf.all.disable_ipv6 = 1

# It's the answer.
# Now we must disable ipv6 support in sshd too:
r...@workstation:~# sed -i 's|^exec /usr/sbin/sshd$|exec /usr/sbin/sshd -4|g' 
/etc/init/ssh.conf 
r...@workstation:~# service ssh restart
r...@workstation:~# exit
r...@workstation:~$ exit

# Check changes
r...@laptop:~$ ssh -X workstation

# Check for $DISPLAY
r...@workstation:~$ env | grep DISPLAY || echo "No display found"
DISPLAY=localhost:10.0

Done.

-- 
X11 forwarding via SSH does not work after upgrade to karmic
https://bugs.launchpad.net/bugs/434799
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to