• Register
0 votes
1.7k 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?

7 5 2
3,870 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
9 7 4
38,600 points

Related questions

0 votes
1 answer 9 views
9 views
Problem: I am having the issue, and need to fix it: Warning: Untrusted x11 forwarding setup failed: xauth key data not generated .
asked Mar 14 Wafa Abu Yousef 6.1k points
0 votes
0 answers 15 views
15 views
Problem: x11 forwarding request failed on channel 0.
asked Mar 3 Dan phillip 4.1k points
0 votes
1 answer 27 views
27 views
Problem: I tried alot of things , nether of them work ! any explaniation !! putty x11 proxy: unable to connect to forwarded x server: network error: connection refused.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 2.9K views
2.9K 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
1 vote
1 answer 1 view
1 view
Problem : This is the first time I've tried to push to heroku. ssh -vvv *Emails are not allowed*Return : OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv ... file ~/.ssh/id_dsa type -1 debug1: identity file ~/.ssh/id_dsa-cert type -1 ssh_exchange_identification: read: Connection reset by peer
asked 5 days ago Shovo210 13.2k points
0 votes
1 answer 2 views
2 views
Problem: Please help me: x11 forwarding requested but display not set
asked 2 days ago tuhin1 46.7k points
0 votes
1 answer 2 views
2 views
Problem: Can anyone suggest a solution,"what does an ssh key look like?"
asked 4 days ago sumaiya simi 7.7k points
0 votes
1 answer 3 views
3 views
Problem: Can somebody help me to fix the statement>enter your password for the ssh key id_rsa?
asked 5 days ago ashik 10.6k points
0 votes
1 answer 5 views
5 views
Problem: I can’t find or add authorized_keys. How do I add ssh key to authorized_keys?
asked Mar 30 jamuna1 8.5k points