LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-19-2007, 02:27 PM   #1
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44
Forward X11 multiple ssh sessions


I am trying to ssh to box B from box A (my local box), then ssh to box C from box B.

I want to forward X11 from box C to display on box A (my local box

This is what I tried

Code:
ssh -Y boxB
then

Code:
ssh -Y boxC
I tried to run firefox on boxC to display on boxA

Is this possible?
 
Old 04-20-2007, 07:34 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Yes it is possible
 
Old 04-20-2007, 08:04 AM   #3
mechdave
Member
 
Registered: Apr 2007
Location: Adelaide, Australia
Distribution: Ubuntu 8.10 and 7.10 server
Posts: 95

Rep: Reputation: 15
Post RE:Forward X11 multiple ssh sessions

I generally use "ssh -X user@server.example.com app_name" to forward an X application to my desktop from another box

Last edited by mechdave; 04-20-2007 at 08:10 AM.
 
Old 04-26-2007, 05:37 AM   #4
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Original Poster
Rep: Reputation: 44
I know about the -X option. Maybe I didn't ask the question clearly enough

I basically want to forward X11 thru a 3rd ssh session.

1) ssh -X or -Y from my box to a box "B",
2) Then ssh -X or -Y from box "B" to box "C"
3) start up a gui app on box "C" and have it display on my box
 
Old 04-26-2007, 06:15 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
And I answered that yes it's possible
On every ssh server, check that the $DISPLAY is correctly set to a localhost:10.0 or something that looks similiar.
 
Old 04-26-2007, 03:55 PM   #6
dbrmik
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Rep: Reputation: 0
Hi Doublejoon

I am trying to get this to work, but without any success , getting "gtk warning cannot open display ", do you get the same error.

I can ssh from A to C but cannot get X apps working on the local machine, I have Xserver installed and have X11 forwarding enabled(running cygwin on A and B), linux on the remote machine (C)

If you have any luck, post on the thread

Thanks
 
  


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
Multiple Sessions? ttague Linux - Newbie 4 01-02-2005 10:00 AM
Multiple X sessions tw001_tw Slackware 9 05-31-2004 12:35 PM
Multiple Gnome Sessions Ocaba Linux - Software 9 10-05-2003 02:31 PM
Port forwarding and remote X11 sessions lfabiani Linux - Networking 6 04-01-2002 06:11 AM
Multiple X sessions gluon Linux - General 1 09-29-2001 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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