X11 forwarding / ssh: X11 forwarding request failed on channel 0

Hello, I would like to connect through X11 forwarding / ssh from one machine to another both running EOS:

server

cube1: ~ $ systemctl status sshd
● sshd.service - OpenSSH Daemon
     Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; preset: disabled)
     Active: active (running) since Sun 2023-10-22 13:00:46 CEST; 2s ago
  • firewall off
  • no modifications to /etc/ssh/sshd_config
  • xhost +

client

ssh -Xv address
...
debug1: Remote: /home/user/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /home/user/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Requesting X11 forwarding with authentication spoofing.
X11 forwarding request failed on channel 0

This seems a popular question. I have not been able to find an answer.

The “X11 forwarding request failed on channel 0” error happens when the “X11Forwarding” option in the sshd_config file is commented out or not set to yes.

To fix this issue, check if X11 forwarding is enabled on the remote server. You can do this by looking at the server’s SSH configuration file located in /etc/ssh/sshd_config and verifying that the “X11Forwarding” option is set to “yes”.

2 Likes

have read here

https://wiki.archlinux.org/title/OpenSSH#X11_forwarding

1 Like

OK, it is OFF by default whilst no set explicitely. :upside_down_face:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.