MrBitcoin

How to enable ssh to .onion address of umbrel

May 15th, 2021
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. Originally posted at keybase://chat/getumbrel#general/4111 by junderwood
  2.  
  3. @maxidev Use at your own risk, but here's how you do it for ssh via tor... this might get overwritten during an update, not sure. Also requires restarting the tor container so bitcoin etc. might get disconnected temporarily.
  4. ```
  5. 1. SSH in from Local network
  6.  
  7.  
  8. 2. Add config to tor
  9.  
  10. $ nano ~/umbrel/tor/torrc
  11.  
  12. ### Then add these three lines somewhere
  13.  
  14. # SSH tor access
  15. HiddenServiceDir /var/lib/tor/ssh/
  16. HiddenServicePort 22 172.17.0.1:22
  17.  
  18. ###
  19.  
  20. 3. Restart tor service
  21.  
  22. $ cd ~/umbrel/
  23. $ docker-compose restart tor
  24.  
  25. 4. Grab hidden service URL
  26.  
  27. $ cat ~/umbrel/tor/data/ssh/hostname
  28.  
  29. 5. Exit ssh, and try ssh in again with tor
  30.  
  31. $ torify ssh [email protected]
  32. ```
Add Comment
Please, Sign In to add comment