• Register
0 votes

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?

7 5 2
3,870 points

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.


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?

    ForwardX11Trusted yes
    ForwardX11 yes
9 7 4
38,600 points

Related questions

0 votes
1 answer 1.7K views
Problem : I am trying to run startx via PuTTY and Xming but it gives following error: putty x11 proxy: unable to connect to forwarded x server: network error: connection refused
asked Nov 18, 2019 peterlaw 6.9k points
0 votes
2 answers 976 views
Problem : I am trying to ssh to the server but that is asking for the diffie-hellman-group1-sha1 key exchange method as below: ​ssh Unable to negotiate with port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 ​ How can I enable the diffie-hellman-group1-sha1 key exchange method on the Debian 8.0?
asked Jan 10 alecxe 7.5k points
0 votes
1 answer 85 views
Problem : I am very new to Shell scripting. Currently I am trying to write the Shell Script which should create some dirs on my remote server and then it should use the scp to copy the files from the local pc on the remote server. But whenever I try to ... Pseudo-terminal will not be allocated because stdin is not a terminal.” And my script hangs after the message. How to fix above message?
asked Feb 24 mphil 2.3k points