X11 forwarding setup failed
[ link: x11forwardingfail | tags: linux X11 ssh | updated: Fri, 17 Apr 2020 12:12:08 -0400 ]
When trying to set up x11 forwarding over an ssh session to a remote server with the -X switch, I was getting an error like Warning: No xauth data; using fake authentication data for X11 forwarding.
When doing something like:
ssh -Xl root 10.1.1.9
to a remote server, the authentication worked, but I got an error message like:
jason@badman ~/bin $ ssh -Xl root 10.1.1.9
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Wed Apr 14 18:18:39 2010 from 10.1.1.5
[root@RHEL ~]#
and any X programs I ran would not display on my local system..
Turns out the solution is to use the -Y switch instead.
ssh -Yl root 10.1.1.9
and that worked fine.
-db
Like this article? Buy me a beer!