From 858cfb3d3b373c4f227044d862251ac2ab9c254b Mon Sep 17 00:00:00 2001 From: Thomas Schwery Date: Mon, 11 Mar 2019 22:44:25 +0100 Subject: [PATCH 1/2] SSH through Tor Hidden Service --- articles/2019-03-11-tor-ssh.md | 138 +++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 articles/2019-03-11-tor-ssh.md diff --git a/articles/2019-03-11-tor-ssh.md b/articles/2019-03-11-tor-ssh.md new file mode 100644 index 0000000..70bbaf1 --- /dev/null +++ b/articles/2019-03-11-tor-ssh.md @@ -0,0 +1,138 @@ +--- +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 <