• 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.9k 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.

36.1k points

Related questions

0 votes
1 answer 9 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 2.3k points
0 votes
1 answer 332 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
2 answers 45 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 35 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
0 votes
1 answer 144 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