Skip to content

Instantly share code, notes, and snippets.

View turbo-donkey's full-sized avatar

John Worth turbo-donkey

View GitHub Profile
@turbo-donkey
turbo-donkey / unifi-access-how-to-restore.md
Last active October 12, 2021 18:26 — forked from AmazingTurtle/how-to-restore.md
restore access to unifi controller

Restore access to a unifi controller

When you are unable to login to the unifi controller or forgot admin password, you can restore access using SSH and manipulating mongodb directly.

Warning

Do not uninstall unifi controller - most of the data is not stored in mongodb. In case you thought a mongodb backup would be sufficient, you may have fucked up already, just like me. However I managed to write this "tutorial" for anyone to not run into the same trap.

Steps