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

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 29 views
29 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 6 views
6 views
Problem: I get the following error if I login as root; if I login as admin user, then x11 starts with no problems. Ubuntu 14.04 Xming server 2.0 running on Windows 8.1 Could not display the GUI. This application needs access to an X Server.
asked Mar 31 ummesalma 25.2k points
0 votes
1 answer 4 views
4 views
Problem: I am facing this error ,if some one is here to help ? error transport error 202 connect failed connection refused
asked Mar 19 PkGuy 13.1k points
0 votes
1 answer 9 views
9 views
Problem: Now I try login Via Putty using port 22 ssh mode it throws the below error. PuTTY Fatal Error Couldn't agree a client-to-server cipher (available: aes128-ctr,aes192-ctr,aes256-ctr,*Emails are not allowed*,*Emails are not allowed*,*Emails are not allowed*) Please help us to resolve this issue.
asked Mar 31 ummesalma 25.2k points
0 votes
1 answer 6 views
6 views
Problem: Is there anyone to helo on > 'putty fatal error server unexpectedly closed network connection' ?
asked Mar 18 sadi1982 36.3k points
0 votes
1 answer 1 view
1 view
Problem: I tried to find out the solution on the web when I face this problem (Failed to connect to server: Connection refused (111).) but I did not get any useful information that I can continue if you know what is the solution to this please tell me.
asked Mar 30 zayed1 35.6k points
0 votes
1 answer 4 views
4 views
Problem: I spotted this error > channel 2: open failed: connect failed: connection refused
asked Apr 1 Azlan2020 2.3k points
0 votes
1 answer 2 views
2 views
Problem: Please help me fix this dilemma: unable to connect putty to vmware linux
asked Apr 8 tuhin1 48.9k points
0 votes
1 answer 10 views
10 views
Problem : x11 connection rejected because of wrong authentication.
asked Mar 1 Shovo210 13.9k points
0 votes
1 answer 6 views
6 views
Problem: When I encountered this problem, I attempted to find a solution on the internet but was unable to find any useful details. If you read the above query and understand what the solution is, please cooperate with me- Thanks.
asked Mar 29 tuhin1 48.9k points