I use tailscale ssh for the security (so no waypipe), and now I need to run a GUI remotely. I’m reading about ssh -Y or -X, but I get errors, I’m not sure if they’re failing due to the fact I’m using wayland or incorrect settings. on the client computer I edited /etc/ssh/ssh_config to include:
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
XauthLocation /usr/bin/xauth
To the end of .bashrc I added
export DISPLAY=localhost:0
On the host computer I added the settings below in sshd_config:
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no
when I run tailscale ssh [user]@[host] -Y I get the following warning and error:
Warning: No xauth data; using fake authentication data for X11 forwarding
X11 forwarding request failed on channel 0
since the ssh CLI is still successful I try another command
XAUTHORITY=/run/user/1000/gdm/Xauthority DISPLAY=:0 [program]
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Aborted (core dumped)
both computers have xorg-xauth installed. I think xhost shouldn’t be used because it would allow local attacks?
Input appreciated!