On Thu, 9 Dec 1999, Ameet Chaubal wrote:

> Hi all
>
> I am having trouble forwarding a port from machine A to Machine B.
> I have gone thr' the docs but am not able to progress much further.
> I need to forward a port for eg. 82 on machine A (class C) to port 80 on
> machine B (192.168.x.x. reserved address).
> I  tried ssh2 username@machineB -L 82:machineA:80. But that didn't seem to
> work.
> What is the correct procedure to forward a port? Any caveats.

You have the machines backwards. The host in -L should be a host on the remote 
network, not on the local network. There is no way to select from what machine a local 
port is forwarded, because it is always done from localhost. (and a remote forward is 
always done from the remote host.)

Try this:

ssh2 -L 82:machineB:80 username@machineB 

Amanda

Reply via email to