How to fix “X11 forwarding request failed on channel 0″

The fix is to add this line to your /etc/ssh/sshd_config:

X11UseLocalhost no