• Register
0 votes
1.9k views

Problem :

I am having the issue getting ssh X forwarding to work. A setup is I am sshing into the ubuntu VM off OSX a Yosemite host machine.

I have already installed a xQuartz on OSX, xauth on ubuntu, and I believe I have all the relevant options set in my ssh_config files.

I get below one:

Warning: untrusted X11 forwarding setup failed: xauth key data not generated
X11 forwarding request failed on channel 0

Message when opening the connection with a ssh -X, and when I tried to run the X application:

xterm: Xt error: Can't open display:
xterm: DISPLAY is not set

I have a identical setup on my other machine except running a Mavericks and it works fine, is there anything specific to the Yosemite specific I have to know about?

3.9k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

On the macOS Sierra, I now have to do the ssh -Y instead of ssh -X to get the display from the linux machine to work on the Mac.

OR

I also received a same warning as you after upgrading to a Yosemite. After I added a ForwardX11Trusted yes in my ~/.ssh/config file, a warning disappeared.

Do you have the below lines in your ~/.ssh/config file for just enabling Trusted X11 forwarding?

Host APPROPRIATE_HOSTNAME
    ForwardX11Trusted yes
    ForwardX11 yes
    OTHER_OPTIONS
38.6k points