Debian/Ubuntu禁用ipv6后ssh无法使用图形程序
The following resolved my IPv6-Disabling issue with SSH:
1) Adding the following to your sshd_config
AddressFamily inet
2) Restart SSH
Afterwards, the SSH daemon is able to create the X11 socket and
X-Forwarding works as expected.