[plug] SSH Tunnel
Russell Steicke
r.steicke at bom.gov.au
Thu Apr 6 11:26:22 WST 2006
On Thu, Apr 06, 2006 at 11:02:37AM +0800, Michael L. Benjamin wrote:
>
> Thanks, this seems to work nicely:
>
> ssh -L 9999:localhost:9998 -R 9998:mail.iinet.net.au:110 localhost -l
> username
Err, sorry. You should stop this, as you now have an unencrypted
connection from your windows box to mail.iinet.net.au:110.
What's happening here is:
- winxp box listens on port 9999
- connections to winxp box port 9999 are forwarded over the ssh
tunnel, and the linux box makes a connection to its localhost port
9998.
- linux box listens on port 9998
- connections to linux box port 9998 are forwarded over the ssh tunnel
back to the winxp box, which makes a connection to
mail.iinet.net.au port 110.
The other solution (single forwarding) is the correct one:
ssh -L 9999:mail.iinet.net.au:110 linuxbox
Apologies for getting this wrong in the first instance.
--
Russell Steicke
-- Fortune says:
... I don't like FRANK SINATRA or his CHILDREN.
More information about the plug
mailing list