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.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Security > Running xapps over ssh?

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

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-09-2008   #1 (permalink)
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:

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)
Linux Enthusiast
 
KenJackson's Avatar
 
Join Date: Jun 2006
Location: Maryland, USA
Posts: 505
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)
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
EABonney is offline   Reply With Quote
Old 05-13-2008   #4 (permalink)
/etc/init.d/moderator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 6,076
It says you are using display :10.0...have you tried specifying the display as :0 ?
__________________
Registered Linux user #378740
New members read here / Forum Rules
#linuxforums on irc.freenode.net
bigtomrodney is offline   Reply With Quote
Old 05-13-2008   #5 (permalink)
Linux Enthusiast
 
Join Date: Apr 2004
Location: UK
Posts: 597
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

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

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:11 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1