Hey I'm having an issue getting ssh X forwarding to work. The setup is I'm ssh
ing into my ubuntu VM off OSX Yosemite host machine.
I already installed xQuartz on OSX, xauth on ubuntu, and I believe I've have all the correct options set in ssh_config files.
I get the
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
X11 forwarding request failed on channel 0
message when opening a connection with ssh -X
, and when I tried to run an X application:
xterm: Xt error: Can't open display:
xterm: DISPLAY is not set
I have the identical setup on my other machine except running Mavericks and it works fine, is there something specific to Yosemite specific I have to worry about?
Note that some incomplete answers might lead to security flaws.
/usr/X11R6/bin
and on macOS with XQuartz it is in /opt/X11/binSecure solution:
Enable the first option in the Security tab of preferences (Cmd-,) which enables authenticated connections.
Edit ~/.ssh/config
, add XAuthLocation /opt/X11/bin/xauth
to the host config.
ssh -X your_server
works in a secure manner.
Ensure xauth is installed on the destination host.