SSH as a Hidden Service with Tor

Note to self, setup .torrc,

RunAsDaemon 1

HiddenServiceDir /home/tor/.hidden-ssh/
HiddenServicePort 22

Locate tor address,

cat ~/.hidden-ssh/hostname

Edit rc.local so tor starts during boot,

su - tor -c "/home/tor/Apps/tor/App/tor -f /home/tor/.torrc"

Edit SSH conf so it uses the SOCKS proxy for .onion addresses,

Host *.onion
   ProxyCommand nc -xlocalhost:9050 -X5 %h %p

and add hosts,

Host machine.onion
   HostName dkflcfnvfkddjfkd.onion
   Port 22