[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

SSH on TOR

One may find many methods how one may tunnel SSH inside TOR on the Internet, but this is my preferred method as it is the least intrusive.

1. Download connect

$ cd /tmp/
$ hg clone https://bitbucket.org/gotoh/connect

2. Archive the source

$ tar cvf connect.tar connect/

3. Compile and install connect

$ cd connect/
$ make
su -
# cd /tmp/connect/
# cp doc/ /usr/local/share/connect/
# cp connect /usr/local/bin/
# cp /tmp/connect.tar /usr/src/

4. Start TOR

Start Tor from Vidalia or from the CLI:

# sh /etc/rc.d/rc.tor start
exit

5. Connect from SSH over TOR

$ ssh -p <SSH_SERVER_PORT> <SSH_SERVER_URL_OR_IP> -o ProxyCommand="connect -4 -S localhost:9050 %h %p"

If the SSH server uses the default port 22, then you do need to enter the -p <SSH_SERVER_PORT>, otherwise enter the appropriate port. Then also enter the correct SSH server URL or IP in the indicated field

6. Sources

 playground:ssh_on_tor ()