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
-
Go to the Settings tab.
-
Enter the name or value you want to display in your authentication app under Issuer.
-
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
-
Select Set Up Two-Factor Authentication.
-
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.
-
-
Retrieve the 6-digit code from your 2FA app.
-
Enter the code into the Security Code text box.
-
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
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0
