HOW TO SECURE YOUR TOR ONION KEYS
This is a quick guide on how to secure your Tor Onionsite from someone intercepting the keys and hijacking your domain.
Open a terminal and Type
sudo su –
Only hs_ed25519_secret_key is required for TOR to work
Copy other keys to a backup location
Do do this type:
mkdir /backup
mkdir /backup/current-tor-keys
cd /var/lib/tor/hidden_service/
cp -R ./* /backup/current-tor-keys/
rm hs_ed25519_public_key
sudo chown -R debian-tor: /var/lib/tor/hidden_service
sudo chmod -R u+rwX,og-rwx /var/lib/tor/hidden_service
Now use WinSCP and copy the keys off the server to a safe location and delete them from your /backup directory