Find the answer to your Linux question:
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.
  1. #1
    Just 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:

    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"
    Now if I enter this first:
    export DISPLAY=localhost:10.0 XAUTHORITY=~/.Xauthority

    I get this error:
    X connection to localhost:10.0 broken (explicit kill or server shutdown).
    I have tried googling this but I haven't found anything useful. Anyone run into this and have you been able to fix it?

    Thanks,
    -Eric

  2. #2
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510
    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

  3. #3
    Just 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

  4. #4
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,132
    It says you are using display :10.0...have you tried specifying the display as :0 ?

  5. #5
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    682
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •