SSH Onion Service

Jump to: navigation, search

Notes from a Tor Meetup for running an ssh server accessible through Tor.

Implementing the configuration below and running tor on both ends you use torify to wrap ssh.

   torify ssh user@<hash>.onion -p 2233

Server torrc

   SocksPort auto
   RunAsDaemon 0
   DataDirectory /home/user/onion_data
   HiddenServiceDir /home/user/onion_srv
   HiddenServiceVersion 3
   HiddenServicePort 2233
   Log notice stdout

Client torrc

   SocksPort 45422
   RunAsDaemon 0
   DataDirectory /tmp/tor/
   Log notice stdout

Client torsocks

   TorPort 45422