Article 1: How to Enable Two-Factor Authentication (2FA) in cPanel
Overview
Two-Factor Authentication (2FA) adds an extra layer of security to your cPanel account by requiring a one-time security code from your mobile device in addition to your password. This prevents unauthorized access, even if your password is compromised.
Steps to Enable 2FA in cPanel:
-
Log in to cPanel
-
Use your cPanel login URL (often
https://yourdomain.com:2083
or via your hosting provider’s control panel).
-
-
Locate the 2FA Settings
-
In the cPanel dashboard, scroll down to the Security section.
-
Click on Two-Factor Authentication.
-
-
Set Up 2FA
-
Click Set Up Two-Factor Authentication or Set Up 2FA.
-
A QR code will be displayed.
-
-
Scan the QR Code with an Authenticator App
-
Open your preferred authenticator app (Google Authenticator, Authy, Microsoft Authenticator, etc.) on your mobile device.
-
Tap Add account and scan the QR code shown in cPanel.
-
-
Enter the Security Code
-
The app will generate a 6-digit code.
-
Enter this code in the Security Code field in cPanel and click Configure Two-Factor Authentication.
-
-
Test the Login
-
Log out of cPanel.
-
Log back in using your username, password, and the code from your authenticator app.
-
Tips:
-
Always keep a backup of your 2FA recovery codes if cPanel provides them.
-
If you lose access to your device, contact your hosting provider to reset 2FA.