- https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Proxies_and_Jump_Hosts#Tunneling_SSH_Over_Tor_with_Netcat – this is THE ARTICLE — replace “Tor” in the example with your corporate SOCKS proxy
- http://linux.die.net/man/1/nc — a netcat manual page
$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”: