Lost my access to 2FA

Hi - I lost my 2FA

I can access umbrel server via SSH as well as web, but unable to turn it off via both methods. I looked at official solution but it is not working. error: Could not open file /umbrel/db/user.json: No such file or directory

Web also asks for 2FA when I try to disable it. Please suggest some solution

I tried these steps

Hey there! Sorry, those instructions haven’t been updated for umbrelOS 1.x. Feel free to run this command to remove the 2FA:

sudo yq e 'del(.user.totpUri)' -i ~/umbrel/umbrel.yaml
4 Likes

Hello Mayank,
Thank you for the update.

I was wondering, do you plan to move from SHA1 configuration to SHA256 for TOTP?

Regards,

Hi Mayank - this instruction set worked perfectly for resetting my a broken 2FA Login. Can you please have someone to add it to this fix/thread 2FA suddenly incorrect for UmbrelOS 1.x users? Thx! The search surfaced that thread way before yours.
( And I suspect many many users are running on Version 1.x now/by Feb 2025. )

Worked like a dream. Thanks so much for this. I used Termius to SSH in, and entered this command, and hey presto!! I’m so relieved to be back into my server. Fair play to you my friend.