Contents
What is X11 forwarding request failed on channel 0?
The broken X11 forwarding error may also happen if the remote host where SSH server is running has IPv6 disabled. To fix the error in this case, open /etc/ssh/sshd_config file, and uncomment AddressFamily all (if any). Again, restart SSH server to finalize the change.
What does X11UseLocalhost mean?
X11UseLocalhost. Specifies whether sshd should bind the X11 forwarding server to the loopback address or to the wildcard address. By default, sshd binds the forwarding server to the loopback address and sets the hostname part of the DISPLAY environment variable to “localhost”.
Why does X forwarding fail on Channel 0?
Since the other day when I connect to the PC I receive the message “X11 forwarding request failed on channel 0” and X forwarding no longer works. sshd [3786]: error: Failed to allocate internet-domain X11 display socket.
Why is my X11 forwarding request still failing?
If you have a DISPLAY environment variable defined then it should be forwarding. Of course, if you still have it being defined in the profile, you can’t tell – it may be forwarding, but you are getting the wrong DISPLAY value with the wrong key – thus it would still fail. To me, it looks an issue of wrong DISPLAY setting.
How to fix X11 forwarding error in SSH?
The broken X11 forwarding error may also happen if the remote host where SSH server is running has IPv6 disabled. To fix the error in this case, open /etc/ssh/sshd_config file, and uncomment “AddressFamily all” (if any). Then add the following line.
Is there any X11 client that supports the untrusted?
As virtually no X11 client supports the untrusted I’d set that to “no” and do the same for other X11 parameters that show a default of “yes” in the comments. Tried that too, then service sshd restart, but remote login still throws the irritant error.