Re: ssh across socks + remote firewall
From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: Sat, 31 Jan 2004 23:56:28 +0000 (UTC)
In article <gwWSb.80$zM7.firstname.lastname@example.org>,
J M <JM@jm.biz> wrote:
>How do I ssh across following configuration?
>my box -> my.com.socks.80 -> remote.public.host.ip.port.22 ->
Go grab a copy of "connect" and install it on mybox and
On "mybox" create a ~/.ssh/config something like the following (I'm
assuming your socks server is really port 1080, if not, adjust to suit).
ProxyCommand /path/to/connect -S my.com.socks:1080 remote.public.ip 22
ProxyCommand ssh remote.public /path/to/connect remote.private.ip 22
Now just "ssh remote.private" and in theory it should just work (you may
want to set up public-key authentication so you don't need to type 2
Note that you will be double-encrypting the traffic, so it's not super
-- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.