On Thu, 2007-11-01 at 09:30 +1100, [EMAIL PROTECTED] wrote:
>         Anyone know the syntax/method for setting up a multi-hop ssh
>         tunnel?
>         
>         What I mean by multi-hop is a tunnel from localhost via
>         machineX via
>         machineY out to the internet.
>         
>         I'm familiar with doing single-hop ssh tunnels using "ssh -fN
>         -L
>         localport:localhost:remoteport [EMAIL PROTECTED]" (or "ssh -fN
>         -L
>         localport:remote-host:remoteport [EMAIL PROTECTED]", or
>         multi-hop
>         insecure tunnels by adding in "-o GateWayPorts=yes"). 
>         
>         I could manually setup a tunnel from localhost to machineX to
>         machineY,
>         then machineY to the internet, but that seems naff...
>         
>         Thanks for any pointers :-)


>From machine A via B to C
ssh -L 1201:machine.C:80 [EMAIL PROTECTED]

forwards port 1201 on localhost to port 80 on machine C via machine B

Also the whole gauntlet from machine C to A with -R instead of -L
James

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to