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

6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

To resolve the issue you need to specify an X-11 server on the host machine to handle the launch of GUId programs. And if the client is a Windows then install Xming . Also note if the client is a Linux machine install XQuartz.

Now if this is Windows client connecting to Linux. And to launch X11 programs over putty do the following steps:

- Firstly launch XMing on Windows client
- After that launch Putty
    * Enter the basic options as you know in session category
    * Connection -> SSH -> X11
        -> Must Enable X11 forwarding
        -> Update X display location = :0.0
        -> Update MIT-Magic-Cookie-1
        -> Lastly X authority file for local display = point to the Xming.exe executable

Now the ssh server should have permitted Desktop Sharing "Allow other user to view your desktop".

And MobaXterm and other complete remote desktop programs also will work.

9 7 4
38,600 points

Related questions

0 votes
1 answer 70 views
70 views
Problem: I think my Jenkins would ssh in and execute the commands described in a specific job which is running. Currently I want to run my Selenium Webdriver tests but unfortunately it informs me that I have many errors while trying to launch the firefox. I am also ... 45000 ms. Firefox console output: [testng] Xlib: connection to ":0.0" refused by server [testng] Xlib: No protocol specified
asked Jul 11, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 837 views
837 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
0 votes
2 answers 323 views
323 views
Problem : I have installed Java application on my Linux machine and now i am receiving following error : no x11 display variable was set, but this program performed an operation which requires it.
asked Nov 18, 2019 peterlaw 6.9k points
1 vote
2 answers 230 views
230 views
Problem : Is there anything I can do to solve the following problem? unable to connect to upstart: failed to connect to socket /com/ubuntu/upstart: connection refused
asked Nov 11, 2019 peterlaw 6.9k points
1 vote
1 answer 293 views
293 views
Problem: I am beginner to ruby on rails. Recently I have started learning ruby on rails in depth. I am trying to use the ruby on rails to develop my website but I am facing below error whenever I try to open the localhost. could not connect to server: Connection refused ... can’t fix the error so now I am looking for help from ruby on rails expert to give me the quick fix for above error.
asked May 18, 2020 Martin K 6.6k points
0 votes
1 answer 259 views
259 views
Problem : I am not very sure how can I fix the below issue I have really no idea about why am I facing below error while trying to do the runserver: Performing system checks... System check identified no issues (0 silenced). Unhandled exception in thread ... server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
asked Dec 25, 2019 alecxe 7.5k points
0 votes
1 answer 1.4K views
1.4K 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 ... 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?
asked Jan 22, 2020 jwilliam 3.9k points
0 votes
1 answer 6 views
1 vote
1 answer 627 views
627 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