• 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

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.


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 2.2K 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 1.8K 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, 2020 alecxe 7.5k points
0 votes
1 answer 132 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, 2020 mphil 2.3k points
1 vote
1 answer 621 views
Problem : I am very new to WinSCP. If I want to SSH into my cluster then I need to go through two stages. I need to enter my password two times to reach my home directory using the SSH in my Linux terminal or the PuTTY. But if I want to use the ... recently I have started facing below error: Trying SFTP: Cannot initialize SFTP protocol. Is the host running a SFTP server? How to fix above problem?
asked Apr 6, 2020 morrisBson 3.2k points
0 votes
1 answer 829 views
Problem : I am working on the project remotely through the command line on the machine to which I don't have the admin rights and after running git push origin master I get the below error message: (gnome-ssh-askpass:29241): Gtk-WARNING **: cannot open ... to host github.com port 22: Connection timed out fatal: The remote end hung up unexpectedly Does anyone have any solution for my issues?
asked Dec 11, 2019 alecxe 7.5k points
1 vote
1 answer 557 views
Problem: I installed pygame in my system and tried to run the below code: import sys import settings import pygame def run_game(): pygame.init() all_settings = settings() screen = pygame.display.set_mode( (all_settings.screen_width, all_settings.screen_length)) pygame.display. ... a development version of SD L is installed. ImportError: No module named 'pygame' Can anyone help me to solve this?
asked Jun 1, 2020 samhaz 5k points
0 votes
1 answer 9 views
Problem: Very few users are facing the below error if tried debugging:  "Application has generated an exception that could not be handled.". This is the legacy application for which we do not have the access to source code and it just changed ... .root\DTSExecuter\DWMaintenance\mainForm.vb:line 16 at mainForm.Main() in C:\MyProjects\DTSExecuter.root\DTSExecuter\DWMaintenance\mainForm.vb:line 4
asked Jul 7, 2020 Raphael Pacheco 4.9k points