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’ [email protected]


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