💾 Archived View for youshitsune.tech › posts › setup-ssh-over-tor.gmi captured on 2023-11-04 at 11:28:52. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-07-22)

-=-=-=-=-=-=-

Setup SSH Over TOR

This is tutorial for Debian systems.

Setting up Tor - Server

First install tor.

sudo apt install tor

Then edit torrc file.

sudo vim /etc/tor/torrc

Add this to it

HiddenServiceDir /var/lib/tor/hidden-service-example/
HiddenServicePort 22 127.0.0.1:22
HiddenServiceAuthorizeClient stealth hidden-service-example

Restart tor

sudo systemctl restart tor

That's it for the server

Setting up Tor - Client

First install tor.

sudo apt install tor
sudo systemctl start tor

Then ssh into your machine

torify user@hostname_of_your_service

To get hostname run this.

sudo cat /var/lib/tor/hidden-service-example/hostname