Was talking to a pal about ssh as hidden service. “It’s simple” he said, and practically dared me to do it. But I didn’t really want ssh, I thought let's do http instead because Adland. Oh okay. So you want to try it too? Lets go.
sudo apt-get install tor
sudo nano /etc/tor/torrc to add the following
HiddenServicePort 80 127.0.0.1:80
Now, that’s port 80. Do 22 if you want to cloak your ssh.
service tor reload
and check what your hostname is:
sudo cat /var/lib/tor/ssh_hidden_service/hostname
Now that you know your name, you’ll have to add a SERVERALIAS in your apache conf somewhere, wherever you keep that stuff. Could be apache.conf, or in apache2/conf-enabled/000-default.conf or even in your .htaccess depending on how homey play dat. Reload apache after adding the serveralias.
ta-dah, you’re done.
My friend also made a post, but in Swedish: “SSH som hidden service”