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 127.0.0.1:9150 %h %p’ [email protected]

Comments