All,
I'm trying to set up SSH X11 forwarding from a NetBSD 8.2 VM (running via QEMU) to a Ubuntu 20.04 host. When I attempt to ssh -X
into the machine, the $DISPLAY
variable is not set and I get an error message: "X11 forwarding request failed on channel 0". The following are pertinent environment details:
xauth
is installed on the NetBSD 8.2 VM and it works properly- I have the line
ForwardX11 yes
in the/etc/ssh/ssh_config
file on both NetBSD as well as the Ubuntu host - I have the line
XAuthLocation /usr/X711/bin/xauth
in thessh_config
file on NetBSD.
If I run ssh -v
, then the relevant X11 output I get is the following:
Authenticated to localhost ([127.0.0.1]:10022).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: exec
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
X11 forwarding request failed on channel 0
what could be possible reasons for this?