MarioNote

December 4, 2011

X11 Forwarding Fails When IPv6 is Disabled [Resolved]

Filed under: Ubuntu — mariojump @ 5:49 pm
Tags: , , ,

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.

Advertisements

Create a free website or blog at WordPress.com.