How to use ssh tunnel to reach a machine on a private network?
I wonder if anyone can help me work out how to do this, please:
I have two private networks (192.168.1.0/24) each with a firewall
machine connecting through ADSL to the Internet. Each private network
can reach the Internet through the firewall (using NAT); therefore no
machine except the firewall is visible from outside (at static IP
addresses allocated by the ISP).
I can, from any machine on either private network, do
"ssh -X remote.firewall.address" and connect to the remote firewall.
What I am trying to do is to use ssh tunnelling to go direct to one of
the machines on the remote private network, because I need to be able to
run X programs from that machine on my own display. However, I can't
work out how to do it.
So far, I tried
ssh -X -L 8877:remote.private.machine:22 remote.firewall.address
(using 8877 as an arbitrary unassigned port) but all that gives me is a
connection to the remote firewall itself.
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"It is better to trust in the LORD than to put
confidence in man." Psalms 118:8
Reply to: