After disabling Ubuntu 11.10′s IPv6 by putting the following lines in /etc/sysctl.conf, I found that X11 Forwarding (ssh -X option) stopped working.
#Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
Ubuntu Forum had an exact same case and workaround.
http://ubuntuforums.org/showthread.php?t=1649657
So, I put the following lines in remoet host’s /etc/ssh/sshd_config file.
$ cat /etc/ssh/sshd_config
………………………………
# Workaround to have X forwarding work when ipv6 is disabled
# http://ubuntuforums.org/showthread.php?t=1649657
AddressFamily inet
————-
It worked.
Advertisement