Skip to content

Instantly share code, notes, and snippets.

@nebulak
Created May 19, 2019 13:18
Show Gist options
  • Save nebulak/06ccb73576f708bf9af9d6dd1d95533e to your computer and use it in GitHub Desktop.
Save nebulak/06ccb73576f708bf9af9d6dd1d95533e to your computer and use it in GitHub Desktop.

Tor installation

sudo apt-get -y install tor
sudo systemctl enable tor

Erzeugen von hidden services

echo '# Hidden service for ssh' >> /etc/tor/torrc
echo 'HiddenServiceDir  /var/lib/tor/hidden_service_ssh/' >> /etc/tor/torrc
echo 'HiddenServicePort 22 127.0.0.1:22' >> /etc/tor/torrc
echo 'HiddenServicePort 80 127.0.0.1:80' >> /etc/tor/torrc
echo 'HiddenServicePort 443 127.0.0.1:443' >> /etc/tor/torrc


systemctl restart tor
sleep 60

hidden_service_ssh="$(cat /var/lib/tor/hidden_service_ssh/hostname)"
echo hidden_service_ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment