Help Disabling 2FA via SSH from Console – Admin User Locked in 2FA Loop

TechMadison

Bronze Partner
Basic Certified
Joined
May 16, 2025
Messages
2
Reaction score
2
I'm looking for guidance on how to disable two-factor authentication (2FA) via SSH from the console, either for the admin user or globally for all users.

Currently, when attempting to reset the admin password, the process gets stuck in a loop requiring 2FA setup. Scanning the QR code or manually entering the key into an authenticator app both appear to work, but the system keeps reporting an “invalid code” during validation and won’t allow the reset to continue.

I do have root access to the Debian server where this on-premise system is hosted, but I’ve been unable to locate any authentication configuration files that control or disable 2FA.

If anyone has encountered this or can point me toward the relevant files or steps to bypass or disable 2FA temporarily, I’d greatly appreciate the help.

Thanks in advance!
 

Attachments

  • 2FA.png
    2FA.png
    30.1 KB · Views: 12
This is an time problem of your pbx. Did you check that?
 
This is an time problem of your pbx. Did you check that?
I had not checked that! The time was off by ~6 minutes. I installed the NTP service, added public NTP servers and that fixed the issue. Thanks for your help @bitn2
 
  • Like
Reactions: bitn2 and GregG_3CX

Latest Posts

Forum statistics

Threads
111,963
Messages
589,998
Members
164,868
Latest member
swegner