LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-11-2010, 06:31 PM   #1
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Rep: Reputation: 41
X server forwarding via SSH


There was another thread on this recently, but my question isn't quite related, and I don't like thread hijacking.

Now, what I'm trying to do, is log into a Ubuntu 9.04 box from a Fedora 12 box. I know how to do this through SSH.
What I don't know how to do is how to set it up so that after SSH login - or even alongside, if it's easier - I can launch applications from that SSH terminal and have them displayed on the Fedora desktop.
What I'm not after, is bringing the entire desktop over. I don't want that, I just want whatever applications I choose to launch from the terminal.

What I do know so far is that I can already login to Ubuntu via SSH.
I also know that on one of the two computers - I don't know which - I have to either have xnest or Xephyr installed. My guess is that it'd be on the Ubuntu system, but I want to be sure.
 
Old 03-11-2010, 06:56 PM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
http://www.techotopia.com/index.php/..._Forwarding%29
 
1 members found this post helpful.
Old 03-11-2010, 07:12 PM   #3
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
Thanks, that's useful - but after setting X11Forward to yes, the echo command it gives still returns nothing.
I think I might have to restart a service to achieve it, or just restart the computer, but I'd rather not do that right now.
 
Old 03-11-2010, 07:46 PM   #4
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
killall -HUP sshd or /etc/init.d/ssh reload
daemon of ssh will reread config.

Last edited by troop; 03-11-2010 at 07:48 PM.
 
1 members found this post helpful.
Old 03-11-2010, 07:55 PM   #5
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
No difference, I'm afraid.
 
Old 03-11-2010, 08:45 PM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
This is done routinely.
On Fedora (with an X server owned by you running on the Fedora host):
Code:
ssh -X you@the.ubuntu.host
When you're there, echo $DISPLAY. It should be something like "localhost 10.0", where the '10' should be any smallish integer. If so, simply run your X applications:
Code:
gimp
--- rod.
 
1 members found this post helpful.
Old 03-12-2010, 04:14 AM   #7
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
Aha.... missed the -X parameter. That explains it.
 
  


Reply



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
[SOLVED] ssh server forwarding denied - manwithaplan Linux - Networking 1 08-19-2009 10:07 AM
ssh port forwarding as a proxy server: how to be aware of the current connections Gozer404 Linux - Security 2 07-15-2009 11:22 AM
SSH X forwarding discala Linux - Networking 8 01-05-2007 06:05 AM
Firewall/NAT issues with X-Server w/ SSH forwarding JMCraig Linux - Security 1 01-25-2005 12:51 AM
ssh and X-forwarding Björneborg Linux - Networking 2 02-19-2004 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:23 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