ssh -D 9999 -C <proxy server>
ssh -o ProxyCommand='nc -x localhost:9999 %h %p' <destination host>
add to .ssh/config
:
Host <destinatin host>
User <username>
ProxyCommand ssh <proxy host> nc %h %p
then use command:
ssh <destinatin host>