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.

  • cPanel, 2FA, Linux
  • 0 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

A fatal error has occurred Cannot write to cache directory /tmp

While accessing WebMail client I was getting an error as below - A fatal error has occurred...

How to install Hostname SSL Certificate for cPanel

To install SSL on Hostname, you must first have a valid Hostname, SSL is not installed on IP,...

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...

How to update cPanel with shared license

To update your cPanel version to the latest version, first enter WHM and enter the section...

SSL installation tutorial for HostName

Hello, dear all users We are at your service with the SSL installation tutorial for HostName...