LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2003, 03:14 PM   #1
apax
Member
 
Registered: May 2003
Location: Sweden
Distribution: Gentoo, Slackware 9.1, Slackware 8.1, Mac OS X (if it counts...)
Posts: 71

Rep: Reputation: 15
x11 with ssh


Hi..

I just would like to know how you start a x11 program with ssh...
I've taken a look at some man pages, but did'nt really wich one to browse...

For example, I would like to be able to start xine on one computer from another...

/apax
 
Old 09-03-2003, 03:29 PM   #2
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,081

Rep: Reputation: 51
I hit the same problem a few weeks ago. Try "ssh -C -X xxx.xxx.xxx.xxx" (where the x is the IP address of the box you want to ssh into)- and you should be able to type any program name at the command line.
Good Luck!
 
Old 09-03-2003, 03:37 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You need to make sure that X forwarding is enabled in sshd configuration file (server side).
 
Old 09-06-2003, 05:31 AM   #4
apax
Member
 
Registered: May 2003
Location: Sweden
Distribution: Gentoo, Slackware 9.1, Slackware 8.1, Mac OS X (if it counts...)
Posts: 71

Original Poster
Rep: Reputation: 15
X forwarding is enabled... But the thing is, I'd like to be able to start a X program form another computer in my network, and that computer does'nt use x at all...

When I type ssh -C -X xxx.xxx.xxx.xxx (with x as my ip), get the result "Cannot connect to X server" when i try to start, for example kedit...

I've heard that you should fiddle a little with some variables?
 
Old 09-06-2003, 05:38 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
well you will need an X server to connect to.... you can tell the application to connect to a locally running server specifically... e.g.

blah --display :0

would be a typically valid option for an X program. but you have to have a server running somewhere....
 
Old 09-06-2003, 06:16 PM   #6
apax
Member
 
Registered: May 2003
Location: Sweden
Distribution: Gentoo, Slackware 9.1, Slackware 8.1, Mac OS X (if it counts...)
Posts: 71

Original Poster
Rep: Reputation: 15
thanks... that solved it...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X11 forwarding over SSH SirSlappy Linux - Networking 1 10-18-2005 01:37 PM
Tunnel x11 thru SSH XaViaR Linux - General 8 07-27-2005 11:30 AM
ssh with putty and x11 forwarding provkitir Debian 4 06-10-2005 09:58 PM
ssh, X11 blackzone Linux - Networking 1 08-05-2004 06:07 AM
Problems with ssh and X11 forwarding Dabria Linux - General 5 02-13-2004 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration