SLUG Mailing List Archives
Re: [SLUG] making SSH port forwarding externally available
- To: SLUG <slug@xxxxxxxxxxx>
- Subject: Re: [SLUG] making SSH port forwarding externally available
- From: Malcolm Tredinnick <malcolm@xxxxxxxxxxxxxxxxx>
- Date: Fri Sep 14 13:05:02 2001
- User-agent: Mutt/1.2.5i
On Fri, Sep 14, 2001 at 12:51:45PM +1000, Sonam Chauhan wrote:
> To workaround a local network misconfiguration, I am port forwarding
> a local port to a remote machine using ssh.
> This works for my local loopback address: 'localhost', but I
> would like to make the tunnel accessible to another person at work.
> (he doesn't use Linux but need to access the same remote port)
> i.e.: If I do a "ssh -f -N -L 1234:remote:1234 remote" , then
> "telnet localhost 2323" establishes a connection to 'remote' via the
> ssh tunnel, but "telnet my_machine_IP 2323" doesn't.
Look at the -R option to ssh, which is "reverse forwarding". You can
probably do something like -R 1234:my_machine_IP:1234 as well as the -L
option you have above and it will work. (Note: this is untested, but the
theory is sound.)
Telepath required. You know where to apply...