ssh across socks + remote firewall

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
How do I ssh across following configuration?

my box -> -> ->


Re: ssh across socks + remote firewall

Quoted text here. Click to load it

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

Host remote.public
  ProxyCommand /path/to/connect -S remote.public.ip 22

Host remote.private
  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
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.

Re: ssh across socks + remote firewall

Sorry should be (NAT firewall) and not really
a SSH server.

my box -> -> remote.public.IP (NAT/or other firewall) ->


Quoted text here. Click to load it

Site Timeline