LinuxQuestions.org
Register a domain and help support LQ
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-10-2012, 11:45 AM   #1
miketosh
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
Send X11 over LAN into remote SSH tunnel


I'm trying to force an xterm to open from a remote host, D, over an SSH connection between boxes B and C, to display on my windows PC, A.

Box A, the windows PC has a windows-based Xserver (EOD). I connect to box B and run Gnome. From box B, I run ssh -Y C xterm -ls. So then I get an xterm from box C running through the window manager on Box B, displaying on Box A.

Box D is the difficult part. It cannot route to Boxes B or A, and it doesn't have SSH installed. I can open an xterm to its local display, and I can open an xterm pointed back to a X11 tunneler on Box C, xmond, which then gets displayed back to box A. (I connect to Box D from box C using RSH and Telnet)

I'd like to get this xterm from box D running through the SSH tunnel between boxes B and C. Instead, when I run xterm -display C:10, I get this error: "X11 connection rejected because of wrong authentication." Ultimately, I'd like to run a proprietary X11 application over this tunnel, just using xterm to get started.

Has anyone been able to use an SSH tunnel between two boxes to route X11 from a third?
 
Old 09-10-2012, 12:47 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,091

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
your method of ssh from a to b, run the window manager, then run an Xterm on box b, and ssh with X forwarding into box C seems the most logical, but yes, you could look into iptables to forward say, port 23 from box a to port 22 on box c via box b
 
Old 09-10-2012, 02:32 PM   #3
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 141

Rep: Reputation: 18
Did you perform any user changes using su while you jumped from one host to the next?
If so check that your .Xauthority file got the right contents.

---------- Post added 09-10-12 at 09:33 PM ----------

You may want as well to have a look here: http://brakertech.com/xlib-putty-x11...col-attempted/
 
Old 09-10-2012, 02:35 PM   #4
miketosh
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
not using su, but box D doesn't have SSH, so I rsh as root to that box.

From desktop A: <EOD> to box B, start gnome
From box B: ssh -Y C xterm -ls
From box C: rsh D -l root (or telnet)
From box D: xeyes -display D:10 (pointing to my ssh tunnel)
 
  


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
[SOLVED] Logwatch configure to use SSH Tunnel into Mail server to Send Log reports mainlinex Linux - General 4 03-02-2011 04:46 PM
LXer: Importing a remote desktop session via ssh tunnel LXer Syndicated Linux News 0 08-14-2009 07:20 PM
Connect LAN Games through SSH TUNNEL pujakofriendly Programming 2 01-11-2007 07:08 AM
Tunnel x11 thru SSH XaViaR Linux - General 8 07-27-2005 11:30 AM
Remote Desktop using SSH tunnel..... help! redhatbeatswin Linux - Newbie 5 08-14-2004 11:51 AM


All times are GMT -5. The time now is 06:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration