ssh -o ProxyCommand='nc -x myproxyserver.example.com:1080 %h %p' targetsshserver.example.com
Written with StackEdit.