ssh -o ProxyCommand='nc -x myproxyserver.example.com:1080 %h %p' \ targetsshserver.example.com
This can be used