Tag Archives: Warning: untrusted X11 forwarding setup failed: xauth key data not generated

Warning: untrusted X11 forwarding setup failed: xauth key data not generated

Problem Description:

Use xshell to remotely log in to a server 1 and set X11 transfer in the session — SSH — tunnel

  At present, the graphical interface of the software can be opened on server 1. At this time, SSH to another server 2 cannot open the graphical interface

SSH – X server 2

report errors:

Warning: untrusted X11 forwarding setup failed: xauth key data not generated

solve:

On server 2, install xauth

# yum install xauth

Edit/etc/SSH/sshd_ config

X11Forwarding yes

Edit/etc/SSH/SSH_ config

ForwardX11Trusted yes

ForwardX11 yes

ForwardAgent yes

When logging in to server 2 last, use:

SSH – C – y server 2