• Register
0 votes

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

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 37 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 Raphael Pacheco 4.9k points
0 votes
1 answer 531 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 254 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 80 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 114 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 Martin K 6.6k points