Code: Select all
$ ssh -o ProxyCommand='nc -x myproxyserver.example.com:1080 %h %p' myuser@targetsshserver.example.com
(Thanks to Captain Obvious for pointing that out )
Here is the same connection as .ssh/config example:
Code: Select all
Host mysshserver
Hostname targetsshserver.example.com
User myuser
ProxyCommand nc -x myproxyserver.example.com:1080 %h %p
Successfully tested and used on Xubuntu 16.04.1 (Xenial Xerus) - ssh client v7.2.
Thanks to the posting 'SSH via SOCKS proxies' (by Jethro Carr).