I'm running OpenWrt 18.06.1 on a GL.iNet GL-USB150(WikiDev). I have an SSH server running on the tor network.
This is the contents of my /etc/tor/torrc

Log notice syslog
DataDirectory /var/lib/tor
HiddenServiceDir /var/lib/tor/other_hidden_service/
HiddenServicePort 22
User tor

Each time I reboot my private key and .onion address changes, which I see in these files:


How do I make my onion address persistent?


Putting the tor "DataDirectory" and "HiddenServiceDir" somewhere under /etc/tor/ should make them persist across reboots.

So, just change the 2 paths in your /etc/tor/torrc to not point onto var anymore.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.