Creating Tor Hidden Services
Most GNU/Linux distributions come with the TOR package. In this tutorial I will be using a Raspberry Pi with Raspbian Stretch Lite from June 2018.
$ sudo apt install tor
/etc/tor/torrc
HiddenServiceDir /var/lib/tor/sshd/ HiddenServicePort 22 127.0.0.1:22 HiddenServiceDir /var/lib/tor/web/ HiddenServicePort 80 127.0.0.1:80
HiddenServiceDir /var/lib/tor/keys/ HiddenServicePort 22 127.0.0.1:22 HiddenServicePort 80 127.0.0.1:80