- Add these lines to
/etc/tor/torrc
HiddenServiceDir /var/lib/tor/ssh_hidden_service/
HiddenServicePort 22 127.0.0.1:22
HiddenServiceAuthorizeClient stealth client_name
- Restart tor service
- Get onion address and client key from
/var/lib/tor/ssh_hidden_service/hostname