[TUTORIAL] Can't login to GUI after TFA has been disabled

cglmicro

Member
Oct 12, 2020
98
11
13
51
If you ever disable (not delete) TFA in the GUI, and this TFA was only having 1 method (i.e.: OTP), you may face this bug: you can't no longer log in the GUI since it ask for a TFA, but no method are enabled.

Method #1:
Don't panic, just log in SSH to your master and rename the /etc/pmg/tfa.conf to /etc/pmg/tfa.conf_backup and you'll be able to log in the GUI to recreate the TFA.

Method #2:
If you just want to reenable the same TFA, just edit the /etc/pmg/tfa.conf to change:
Code:
..."enable":false...
for:
Code:
..."enable":true...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!