Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
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
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.