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.
$ cd /tmp/ $ hg clone https://bitbucket.org/gotoh/connect
$ tar cvf connect.tar connect/
$ cd connect/ $ make $ su - # cd /tmp/connect/ # cp -r doc/ /usr/local/share/connect/ # cp connect /usr/local/bin/ # cp /tmp/connect.tar /usr/src/
Install Tor and optionally also Vidalia. Slackbuilds for these two applications may be found in http://slackbuilds.org.
Start Tor from Vidalia or from the CLI:
# sh /etc/rc.d/rc.tor start # exit
$ 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
* Original source: https://www.antagonism.org/anon/ssh-tor.shtml