Disable OTP via Console

redjohn

Well-Known Member
Apr 22, 2016
132
4
58
27
Hello,

I have problems with OTP Login. I can not login now at the promox webinterface. is there any option to disable the otp login for linux users? i have ssh access to the server.

please help!

best regards,

Oliver
 
What kind of problems? On your or on PVE's end? If you think it's a problem on PVE's side, please post the output of `pveversion -v` and describe the problems in more detail.

To disable it from SSH open /etc/pve/domains.cfg and remove the tfa line in the authentication section where you want to disable it.
 
for me by change the setting of that user in /etc/pve/user.cfg from
user:root@pam:1:0:::xx@xxx.org::x:

to
user:root@pam:1:0:::xx@xxx.org::::
strange i check `/etc/pve/domains.cfg ` there is no thing
maybe bcs there is just one node
 
  • Like
Reactions: chunkee
for me by change the setting of that user in /etc/pve/user.cfg from
user:root@pam:1:0:::xx@xxx.org::x:

to
user:root@pam:1:0:::xx@xxx.org::::
strange i check `/etc/pve/domains.cfg ` there is no thing
maybe bcs there is just one node
I was experiencing the same problem on version 7.3 (disabled 2FA of my root user because I wanted to add a new node to the cluster to be enabled afterwards) and was looking for the file. Found it at /etc/pve/priv/tfa.cfg. I move the file to .bak and I could add the node. Then restored it.
 
for me by change the setting of that user in /etc/pve/user.cfg from
user:root@pam:1:0:::xx@xxx.org::x:

to
user:root@pam:1:0:::xx@xxx.org::::
strange i check `/etc/pve/domains.cfg ` there is no thing
maybe bcs there is just one node
This fixed my issue too.
 

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!