
Once we have installed tor and connect-proxy, we need to configure ssh to use tor as proxy whenever we ssh to something.onion. Make sure that tor is running by executing sudo service tor start. I am using Debian as operating system for the client.Ĭonnect-proxy is a tool used for tunnelling TCP connections using SOCK or HTTPS proxies, and it is what we will be using to tunnel our ssh connections using tor as proxy. Now, to access my raspberry pi remotely, I must be connected to tor network and then ssh to my raspberrypi’s onion hostname using tor as proxy.
#Tor proxy tutorial password
Then follow the instructions i) enter current password, ii) enter new password, and iii) confirm new password by entering it again. To change your raspberry pi password, run the following command: passwd If you haven’t changed the default password of your raspberry pi, it is highly recommended to change it to especially as it will be accessed through the internet now. (OPTIONAL) Change the default password of your raspberry pi The host would look something like cf345hny2qzgzk1z.onion, save it as it is what you will use as a host when logging in to your raspberry pi.Ĥ. To get the hostname of the hidden service ( something.onion ), run the following code: sudo cat /var/lib/tor/ssh_hidden_service/hostname If it restarted successfully, then everything is configured properly.ģ. Once you are done, restart tor sudo /etc/init.d/tor restart The first line indicates the directory where to store the information related to the service, and the second refers to the port and IP of the service. HiddenServiceDir /var/lib/tor/ssh_hidden_service/ sudo nano /etc/tor/torrcĪfterwards, add the following two lines at the end of the file. To add a hidden service, you must edit /etc/tor/torrc using your favourite text editor.
#Tor proxy tutorial install
If you don’t have tor installed on your raspberry pi, install it using this command. I am using Raspbian as an operating system for my raspberry pi. Kindly note, this tutorial is just for educational purpose and I am not responsible for the consequences, whatever they may be.įirst, we have to create a hidden tor service on raspberrypi.


This method is not limited to raspberry pi, and it can be applied on any computer you can install Tor on.
#Tor proxy tutorial software
Tor Project, The Onion Router, is a free software that provides anonymous communications over the internet. I have achieved this by using a hidden SSH Tor service.

Few days back, I needed to access my raspberry pi remotely from anywhere.
