ssh to “beyond the corporate firewall” through a SOCKS proxy

My $HOME/.ssh/config looks like this:

# making use of "netcat" AKA "nc" -- http://linux.die.net/man/1/nc
#
Host SOME_HOST_OUT_THERE
  User REMOTE_USER
  ProxyCommand /usr/bin/nc -X 5 -x SOCKS_PROXY_HOST:SOCKS_PROXY_PORT %h %p

“As always” I connect to SOME_HOST_OUT_THERE like this:

$ ssh REMOTE_USER@SOME_HOST_OUT_THERE
# respectively
$ ssh SOME_HOST_OUT_THERE

You can also “rsync over ssh” under these conditions – works like a charm.

And: This also works in a Cygwin environment.

PuTTY can use a SOCKS proxy just as well for connecting to a target “out there”:

This site uses Akismet to reduce spam. Learn how your comment data is processed.