SBM Labs

Cyber Security Collaboration Project

SSH connection through Tor
18 Aug 2013

Installation of Tor client (Ubuntu Desktop 12.04 LTS).

$ sudo apt-get install tor

Tor client listens port 9050/TCP by default.

SocksPort 9050 # what port to open for local application connections
SocksListenAddress 127.0.0.1 # accept connections only from localhost

SSH connection through Tor.

$ ssh -p22 -o "ProxyCommand nc -X 5 -x 127.0.0.1:9050 %h %p" username@hostname

SSH server will see IP address of the third node which can be in any country of the world.

Local port forwarding over SSH
File transfer using nc