Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Security
Reload this Page Running xapps over ssh?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Security Discussion about keeping your machines secure, and the crackers out.

Reply
 
Thread Tools Display Modes
Old 05-09-2008   #1 (permalink)
EABonney
Just Joined!
 
Join Date: Jun 2007
Posts: 23
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:

Quote:
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:
Quote:
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
EABonney is offline   Reply With Quote
Old 05-09-2008   #2 (permalink)
KenJackson
Linux User
 
KenJackson's Avatar
 
Join Date: Jun 2006
Location: Maryland, USA
Posts: 466
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
__________________
Why I prefer GNU/Linux
KenJackson is offline   Reply With Quote
Old 05-13-2008   #3 (permalink)
EABonney
Just Joined!
 
Join Date: Jun 2007
Posts: 23
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
EABonney is offline   Reply With Quote
Old 05-13-2008   #4 (permalink)
bigtomrodney
Bigtomrodinator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 4,790
It says you are using display :10.0...have you tried specifying the display as :0 ?
bigtomrodney is offline   Reply With Quote
Old 05-13-2008   #5 (permalink)
kakariko81280
Linux Enthusiast
 
Join Date: Apr 2004
Location: UK
Posts: 517
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...
__________________
DRM keeps an honest user loyal
kakariko81280 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 12:07 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0