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.)

Cheers,
Malcolm

-- 
Telepath required. You know where to apply...

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to