Xauthority file and make a note of the Location to it (select it and press CTRL+C to put it in clipboard).
Secondly, in response to the "Authorization required, but no authorization protocol specified" error, you need to make putty use the correct xauth tokens (something strange seems to go on inside putty so xauth list locally doesn't give tokens that the forwarded connection can use by passing them in xauth add, they seem to need to be set by PuTTY on connection, in order for them to work).įind the path, in the windows domain, where your ~/.Xauthority file is by running (in cygwin terminal again) cd ~ explorer. defaultserverargs="-multiwindow -listen tcp" defaultserverargs="-multiwindow"Īnd change it to. Xauthority to putty.įirstly, in reference to the "PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connection refused" error, you need to make the X session listen for connections: Open a cygwin terminal and edit /usr/bin/startxwin find the line. I managed to get to the bottom of it by setting both -listen tcp on the local startxbin and passing the path to. My system has Cygwin/X (xinit 1.3.4-5), and PuTTY (0.64). I had 2 problems and found this question had the closest problems to mine, so thought my solution would be helpful to others who get here, trying to fix the same problem as me. $ gnome-system-monitor PuTTY X11 proxy: wrong authentication protocol attempted ** (gnome-system-monitor:7024): WARNING **: Could not open X display PuTTY X11 proxy: wrong authentication protocol attempted (gnome-system-monitor:7024): Gtk-WARNING **: cannot open display: localhost:10.168
Когда у меня работает Xming и я устанавливаю новое соединение с моим сервером, после команды я получаю следующее: $ firefox PuTTY X11 proxy: wrong authentication protocol attemptedPuTTY X11 proxy: wrong authentication protocol attemptedError: cannot open display: localhost:10.168 $ google-chrome PuTTY X11 proxy: wrong authentication protocol attempted (google-chrome:7083): Gtk-WARNING **: cannot open display: localhost:10.168 $ gedit PuTTY X11 proxy: wrong authentication protocol attempted ** (gedit:6990): WARNING **: Could not open X display PuTTY X11 proxy: wrong authentication protocol attemptedCannot open display: Run 'gedit -help' to see a full list of available command line options. It runs under Linux & Windows and get's around the firewall issues that usually plague people who don't have a fairly deep knowledge of these things.Я всегда хотел, чтобы X11 Forwarding работал с PuTTY, и система X Window, которую я использую, это Xming.
It's free and would allow you to share desktops back and forth. X in general is good for LAN but not WAN connections.Īlso you might want to check out teamviewer. I suggest NOT going the route of allowing the 6000 port traffic, given this would allow others to sniff your network traffic and see X data going back and forth. If this isn't setup correctly then the X traffic will try and go over port 6000 from the remote system back to you. In general you're going to need to configure your SSH client so that all the X traffic being generated from the remote system should tunnel back through the SSH connection.
Have a look at these howtos for guidance on how to do this: This is a little bit of a complicated thing to try doing if you're not that familiar with ssh, X11, and firewalling in general. I've also tried it using his account (from my computer) and everything worked.Īny ideas, what could cause the problem? is it possible, that some firewall could allow SSH traffic but block X11 forwarding?
But after issuing the command, nothing happened - just new command prompt and no process created at all. We tried firefox, firefox &, gedit and gedit &. nano), but he cannot start any GUI program. He can login using putty, I can see him in who output, he can run console programs (e.g. My computer (on the same LAN as "server") works without any problem (setting putty like this ).įriend, however, he can't open any window (xming is running and putty is configured same as in my computer). I've allowed SSH connections on firewall - everything works perfect, but there is one huge problem.īoth me and my friend abroad have Windows 7, so we are using putty + xming to forward windows.
whole computer is accessible via public ip address to the internet and could be called "server". I have installed fedora 17 on the old desktop computer and put it to DMZ of my NAT network - i.e.