. Advertisement .
..3..
. Advertisement .
..4..
I get the “warning: untrusted x11 forwarding setup failed: xauth key data not generated” issue when trying to get ssh X forwarding to work.
Here is the detail of the error I got the error message:
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
X11 forwarding request failed on channel 0
xterm: Xt error: Can't open display:
xterm: DISPLAY is not set
Please give me some advice to solve this problem.
The cause: Because certain incorrect responses could lead to security issues.
/usr/X11R6/bin
, whereas it is in /opt/X11/bin on macOS with XQuartz.The solution:
~/.ssh/config
, addXAuthLocation /opt/X11/bin/xauth
to the host config.ssh -X your_server
works in a secure manner.Security flaws can result from incomplete answers.
/usr/X11R6/bin
, while it is found in /opt/X11/bin on macOS withXQuartz.Secure Solution:
To enable authenticated connections, enable the first option from the Security tab (Cmd-),
Edit
~/.ssh/config
and addXAuthLocation /opt/X11/bin/xauth
in the host configuration.ssh -X your_server
works securely.Ensure that xauth has been installed on the destination host.