How to Enable Two Factor Authentication in cPanel and WHM?

You are here:
Estimated reading time: 2 min

Even after setting a strong password to your cPanel, your accounts get hacked. Two-factor authentication comes into the picture. The two-factor authentication; an actively supported feature in cPanel adds an extra layer of security in accessing it more securely. The two-factor authentication is also referred to as 2FA, in this users need 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:

Scan the QR code by downloading and installing Google Authenticator or Duo Mobile applications from the Play Store and App Store.

 

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

  • Login to WHM as root.
  • On the left in the search box, search for Two-Factor Authentication or 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 cPanel
  • 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.

Was this article helpful?
Dislike 0

Author

Joshua

Web Hosting Geek Technical Support Staff G Online Sites