How to Enable Two-Factor Authentication (2FA) for WHM

How to Enable Two-Factor Authentication (2FA) for WHM

πŸ” How to Enable Two-Factor Authentication (2FA) for WHM

Two-Factor Authentication (2FA) adds an extra layer of security to cPanel and WHM login interfaces.
It requires two forms of authentication:

  • πŸ”‘ Your password

  • πŸ“² A security code from your smartphone authentication app


⚠️ Important Notes

  • Only the root user can enable or disable 2FA for WHM.

  • After enabling 2FA, you also need to set the Issuer value.


πŸ›  Enable Two-Factor Authentication in WHM

1️⃣ Configure Settings

  1. Go to the Settings tab.

  2. Enter the name or value you want to display in your authentication app under Issuer.

  3. Click Save.


2️⃣ Enable 2FA for a User Account

  • Log in to cPanel as a user.

  • Navigate to:
    πŸ“ cPanel β†’ Home β†’ Security β†’ Two-Factor Authentication

πŸ‘‰ Alternatively, you can also call API functions to access 2FA functionality.


πŸ”§ Set Up 2FA for Root Account

  1. Select Set Up Two-Factor Authentication.

  2. Link WHM with your 2FA app:

    • πŸ“· Scan the QR code with the app (automatic setup).

    • Or ✍️ enter the Account and Key manually in the app.

  3. Retrieve the 6-digit code from your 2FA app.

  4. Enter the code into the Security Code text box.

  5. Click Configure Two-Factor Authentication.


🎯 Final Result

After setup, every time you log in to WHM (or cPanel), you’ll need both your password and the 6-digit code from your authentication app β€” keeping your server safer from unauthorized access. βœ…

Share

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0