Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I have the following setup - sorry, this needs a bit of explanation because it's not entirely clear in my head yet.
IP/hostname
10.1.1.1/shu: hardware router
10.1.1.12/anubis: Ubuntu server, in DMZ - most ports forwarded from shu to it
horus/10.1.1.10, amunra/10.1.1.12, osiris/10.1.1.13: Ubuntu desktops, behind NAT
I have an SSH account on a remote box, which supports X11 forwarding.
How would I go about forwarding remote X11 --> osiris without changing any more port forwards?
Is there some way to go remote --> anubis --> osiris? I'd rather not install X11 on anubis but I will if needed.
Im my opinion, you should change your hardware router to bridge mode, then you could share the internet connection with your server and in this case you could tunnel your SSH connection to do what you want to do.
Thanks for that, bridging might be a good idea but I suspect I'd lose the use of some of the router's features (integrated ATA for VOIP). My solution after some reading up was to:
ssh to anubis with X forwarding on
start an xterm from anubis
then within xterm
ssh to remote with X forwarding on
This will start a graphical shell on your client system, and you can then use that shell to invoke whatever graphical program you need.
Alternatively, you can enter:
ssh -Y -f hostsystem desiredgraphicalprogram
to start the graphical program directly.
For instance:
ssh -Y -f hostsystem Xsession
will start a complete X session on the client, like what you would have if you were sitting in front of the machine.
This will work so long as your router forwards the ssh port (port 22). If you can do a normal ssh login to the remote machine and it supports X forwarding, you can do this.
One thing you could do is use a different port for ssh on osiris. This is similar to how VNC allows additional connections. It uses the next higher port for the second connection. In this case, you could have a different high number port for each machine.
FreeNX needs to be installed on client and server right?
Seeing as I'm only a user and not an administrator on the remote box, I don't think this would be possible.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.