Cloud Service >> Knowledgebase >> cPanel >> How to Enable Two-Factor Authentication from cPanel and WHM
submit query

Cut Hosting Costs! Submit Query Today!

How to Enable Two-Factor Authentication from cPanel and WHM

Two-Factor Authentication (2FA) is an essential security feature for protecting your cPanel and WHM accounts. By requiring a secondary form of verification, 2FA ensures that only authorized users can access sensitive data, even if a password is compromised. Whether you're managing your website on a cloud platform or a dedicated server, enabling 2FA is a crucial step toward safeguarding your hosting environment.

Why Enable Two-Factor Authentication?

With increasing security threats, relying solely on passwords is no longer enough. Two-Factor Authentication adds an additional layer of protection by requiring users to verify their identity using a code generated by an authenticator app.

Key benefits include:

Enhanced Security: 2FA minimizes the risk of unauthorized access, even if passwords are leaked.

Compliance: Many hosting platforms recommend or mandate 2FA to meet security standards.

User-Friendly Implementation: Most servers and cloud hosting environments support straightforward 2FA setups.

Steps to Enable Two-Factor Authentication in cPanel

1. Log in to cPanel

Access your cPanel account using your hosting credentials.

2. Navigate to the Security Section

Once inside the cPanel dashboard, locate and click on the Two-Factor Authentication icon under the Security section.

3. Set Up a 2FA Device

Add Device: Click on “Set Up Two-Factor Authentication” to begin the configuration process.

Scan QR Code: Use an authenticator app on your mobile device to scan the QR code displayed on your screen. Popular apps include Google Authenticator and Authy.

Enter Security Code: The app will generate a one-time security code. Enter this code into the provided field in cPanel to complete the setup.

4. Test and Save

Test the configuration by entering another code from the app. Once confirmed, click Save to finalize the setup.

Steps to Enable Two-Factor Authentication in WHM

For server administrators, enabling 2FA in WHM adds an extra layer of protection for managing hosting accounts.

1. Log in to WHM

Use your root or reseller credentials to log in to WHM.

2. Locate the 2FA Settings

In the WHM dashboard, navigate to Security Center > Two-Factor Authentication.

3. Configure 2FA

Enable 2FA: Click on “Manage My Account.”

Scan QR Code: Open your authenticator app and scan the QR code provided by WHM.

Verify Code: Enter the one-time code generated by the app into WHM’s verification field.

4. Enforce 2FA for All Users (Optional)

To enhance security across the server, consider enabling 2FA for all cPanel accounts:

Go to Security Center > Two-Factor Authentication.

Select the option to enforce 2FA for users.

Troubleshooting and Tips

Lost Access to 2FA Device: If you lose your 2FA device, use the backup codes provided during setup or contact your hosting provider to reset access.

Ensure Compatibility: Confirm that your server or cloud hosting environment supports 2FA. Most modern platforms have built-in support.

Regular Updates: Keep your authenticator app updated for optimal performance and compatibility.

Optimizing Security Beyond 2FA

While 2FA is an effective security measure, combining it with additional practices can provide comprehensive protection for your hosting and cloud environments:

Strong Passwords: Use complex and unique passwords for cPanel and WHM accounts.

Firewall Protection: Enable firewalls to block unauthorized server access.

Regular Backups: Ensure your data is securely backed up in case of unforeseen incidents.

Monitor Login Activity: Regularly review login logs in cPanel and WHM to identify suspicious activity.

Conclusion

Enabling Two-Factor Authentication in cPanel and WHM is a simple yet powerful way to enhance the security of your hosting environment. Whether you’re using a cloud hosting service or a traditional server, 2FA protects against unauthorized access and ensures your data remains secure. By following the steps outlined above, you can implement 2FA efficiently and bolster your cloud hosting security strategy.

Cut Hosting Costs! Submit Query Today!

Grow With Us

Let’s talk about the future, and make it happen!