Results 1 to 5 of 5
So I have to login to my home server from remote locations from time to time and I do this using SSH and usually Putty for Windows unless I am ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-09-2008 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 24
Running xapps over ssh?
So I have to login to my home server from remote locations from time to time and I do this using SSH and usually Putty for Windows unless I am on a linux machine. Some of the items that I would like/need to run are X applications. I have X11 forwarding turned on on the server but yet I still get the following error whenever I attempt to run an application over ssh:
Now if I enter this first:Xlib: connection to "localhost:10.0" refused by server
Xlib: PuTTY X11 proxy: wrong authentication protocol attempted
Error: Can't open display: localhost:10.0"
export DISPLAY=localhost:10.0 XAUTHORITY=~/.Xauthority
I get this error:
I have tried googling this but I haven't found anything useful. Anyone run into this and have you been able to fix it?X connection to localhost:10.0 broken (explicit kill or server shutdown).
Thanks,
-Eric
- 05-09-2008 #2
Do you have both of these?
- -X (capital! X) on the putty command line, and
- X11Forwarding yes in file /etc/ssh/sshd_config on the server
- 05-13-2008 #3Just Joined!
- Join Date
- Jun 2007
- Posts
- 24
I can actually get it working if I run the xapp through ssh from any of my linux boxes or laptops, but I am not able to do this from a Windows XP machine using Putty. I do have X11 forwarding enabled in Putty but it's still a no go.
Anyone have any other suggestions? Any other WinXP software that you would recommend that I could use?
-Eric
- 05-13-2008 #4Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
It says you are using display :10.0...have you tried specifying the display as :0 ?
- 05-13-2008 #5Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 678
This may be a silly question, but have you installed anything on the windows XP box to act as an X server (I may mean client, I always get them confused for X).
You can't just run X based programs over a ssh connection from a Windows box, you have to install something like cygwin first. There may be alternatives, but I've used cygwin with much success.
Let us know how you get on,
Chris...To be good, you must first be bad. "Newbie" is a rank, not a slight.


Reply With Quote
