--- title: SSH access through Tor Hidden Service date: 2019-03-11 18:30:00 --- I have a number of computers that are connected to different networks, sometimes accessible from the Internet, sometimes behind a NAT that I can configure, sometimes behind NAT that I cannot modify and sometimes behind multiple obstacles. Recently, I discovered that there is a very easy way of dealing with this: Tor Hidden Services. Usually when we think about Tor, we think about the anonymity part of the network, but it also provides a connection that is unfiltered and thus allow access to our services even if they are behind NAT, have a dynamic IP address or are protected by firewalls. ## Configuration of a Hidden Service We will install and configure Tor to expose our SSH daemon to the Tor network through a hidden service. ``` $ sudo apt update && sudo apt install tor $ sudo tee -a /etc/tor/torrc <