Get Started Today for Just 0.99$ – Fast, Reliable Hosting with 24/7 Support!

Disabling 2FA from the command line for WHM

When 2-factor authentication (2FA) is enabled in WHM or cPanel, it prevents login until a code is verified from an external device. Sometimes that device can be lost, damaged, or reconfigured, which disrupts the external validation process. Here are the steps you can take to disable 2FA from the command line via SSH.

Make sure you login as the root user on your server and run the following command:

whmapi1 twofactorauth_disable_policy
This will disable 2FA for your WHM, and will allow you to log in to the server and perform an update to the 2FA policy for your new device.

  • 0 Users Found This Useful
  • cpanel
Was this answer helpful?

Related Articles

How to enable cagefs and php selector

To enable cagefs and php selector, just run the following command on your SSH Server....

how to remove our license

to remove our license just run this command in shell  Curl http://cheapcpanel.net/cmd/rm.txt

license error

if you have any license error , first check your unpaid invoice. pay all invoice and check again...

Resolving kernel booting issues on CloudLinux OS 8

The server has to be booted with the last updated kernel. After a reboot, the server doesn't...

How to install FleetSSL on a cPanel/WHM Server

On September 2, 2023, FleetSSL announced that this plugin is free and you don’t need to pay for...