Short Linux Tips: using SSH with a Socks Proxy

Short but useful!

Need to connect to an ssh server through a socks4/5 proxy? (for example, to connect to a tor hidden server?)

Simple, with this short bash snippet:

ssh -o ProxyCommand=’nc -x %h %p’ user@host

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.