mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-19 04:54:18 +01:00
tor hidden service example update
This commit is contained in:
@@ -15,7 +15,7 @@ sudo nano /etc/tor/torrc
|
||||
```
|
||||
HiddenServiceDir /var/lib/tor/ssh/
|
||||
HiddenServiceVersion 3
|
||||
HiddenServicePort 80 127.0.0.1:3010
|
||||
HiddenServicePort 80 127.0.0.1:22
|
||||
```
|
||||
* Restart Tor:
|
||||
```
|
||||
@@ -34,9 +34,34 @@ drwx------ 1 debian-tor debian-tor 0 Feb 11 2020 authorized_clients
|
||||
```
|
||||
* Note the Hidden Service address:
|
||||
```
|
||||
sudo cat /var/lib/tor/thunderhub/hostname
|
||||
sudo cat /var/lib/tor/ssh/hostname
|
||||
```
|
||||
* Connect over the Tor Browser.
|
||||
* For `ssh` over Tor install Tor on your client
|
||||
* Linux:
|
||||
```
|
||||
sudo apt install tor
|
||||
```
|
||||
* On mobile can use Termux:
|
||||
```
|
||||
pkg install tor
|
||||
```
|
||||
run Tor in a different window:
|
||||
```
|
||||
tor
|
||||
```
|
||||
or in the background with:
|
||||
```
|
||||
tor &
|
||||
```
|
||||
* See this video for different Windows and MacOS: https://www.keepitsimplebitcoin.com/how-to-install-tor/
|
||||
|
||||
* SSH over Tor:
|
||||
In a Linux terminal use:
|
||||
```
|
||||
torify ssh username@HiddenServiceAddress.onion
|
||||
```
|
||||
|
||||
* If there is a website hosted on the port open it in the [Tor Browser](https://www.torproject.org/)
|
||||
|
||||
## Add client authorization (Optional)
|
||||
A simple example of requiring authentication credential in order to connect to the onion service
|
||||
|
||||
Reference in New Issue
Block a user