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.

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
AddressFamily inet


It worked.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Rubric Theme. Blog at


Get every new post delivered to your Inbox.

%d bloggers like this: