Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  Domain Name & DNS Issues  >  How to Enable Two Factor Authentication from cPanel and WHM?
Top Scroll

How to Enable Two Factor Authentication from cPanel and WHM?

 2 min

Even after setting a strong password to your cPanel, your accounts get hacked at that time Two-factor authentication comes into the picture. The two-factor authentication actively supported by cPanel to add an extra step to access it more securely. The two-factor authentication is also referred to as 2FA, in this user needs to provide two different authentication factors to verify themselves.

This process is better to protect the user’s credentials. The two-factor authentication method depends on a user providing a password as well as a second factor. This second factor is either a security token or a QR code. In WHM, you can easily set up two-factor authentication and its configuration.

If you want to enable two-factor authentication through cPanel and WHM then follow these simple steps:

To scan the QR code, you need to download and install Google Authenticator or Duo Mobile applications from Play Store and App Store. In this video, I have used the Google Authenticator app for the same.

Let’s start with the step by step process to enable two-factor authentication in WHM:

  • Login to WHM as root.
  • On the left hand in the search box search for Two-Factor Authentication or you can also use its short form “2fa” for the same.
  • Enable the Two-Factor Authentication Security Policy by turning the on and off toggle button.
  • Go to settings for giving a name to the issuer for two-factor authentication. It is set to your server name by default and click on Save
  • Now, click on Manage My Account.
  • If you have not configured the two-factor authentication then in the status field you will see “Not Configured”.
  • Click on Set Up Two-Factor Authentication.
  • In step one, scan the generated QR code with the help of app that you have downloaded.
  • In the Security Code section of step 2 enter the six-digit security code generated in your mobile app. A new code is generated after every 30 seconds and you need to use that code to complete the process.
  • After that click on Configure Two-Factor Authentication.
  • Now, logout again try to login to WHM as root and you will be asked for security code. Enter the six-digit security code generated in your mobile app and click on
  • After this, you will be logged in to the WHM

To enable two-factor authentication in cPanel follow these steps:

  • Login to
  • Navigate to the Security section and select Two-Factor Authentication.
  • If two-factor authentication is not configured previously then click on Set Up Two-Factor Authentication
  • In step one, scan the generated QR code with the help of app that you have downloaded.
  • In the Security Code section of step 2 enter the six-digit security code generated in your app.
  • After that click on Configure Two-Factor Authentication.

So in this way you can enable two-factor authentication from cPanel and WHM.

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.