Home » guide » Use custom .onion address

Use custom .onion address

Changing generic onion to one generated earlier

  1. Check the current .onion generated when you first setup TOR (in case you want to use it)
    > cd /var/lib/tor/hidden_service/
    > cat hostname
  2. If you wish to use a custom address, delete (or move) the old keys
    > cd /var/lib/tor/hidden_service/
    > rm -rf *
  3. locate the keys to copy
    > cd /home/<your username>/Downloads/mkp224o/<key folder name>/<key folder>/
    example
    > cd /home/user/Downloads/mkp224o/websitekeys/websitehz44l75xucojrrqofi4v7rn4y75wu6ocn7zbwjazgr44prfyd.onion/
    > ls -al
  4. Copy the generated keys to the onion service location
    > sudo cp * /var/lib/tor/hidden_service/
  5. change ownership of the copied keys so the service can access them
    > sudo chown debian-tor:debian-tor /var/lib/tor/hidden_service/*
  6. restart the tor service
    > sudo service tor restart