In this tutorial, we are going to learn how to configure two-factor authentication in cPanel to ensure additional security, which enables you to login securely with a one-time security code along with a password.

Authenticator application on your smartphone or PC generates this security code for every 30sec (TOTP). More interesting is the setup process, so let’s jump into the process and configure 2FA for our cPanel.

Enabling 2FA

To enable 2FA, follow these steps:

Log in to cPanel.

cPanel_Login

look for Two-Factor Authentication in security tab and click on it to setup 2FA login.

cPanel 2FA

Click on Set Up Two-Factor Authentication:

setup cPanel 2FA

Once you click on set up two-factor authentication, you should be able to see an extended page to set up 2FA in a step-by-step manner.

Step 1: use your preferred two-factor authentication application ( for example, Google Authenticator ) to scan the QR code. If you do not have a QR code reader, you can manually configure two-factor authentication within the Authenticator app by entering the information provided under Don’t have a QR code reader? in 2FA app.

Step 2: Copy-paste the six-digit security code from the two-factor authentication app to the Security Code text box and then click Configure Two-Factor Authentication to enables 2FA for your cPanel account.

Click configure two-factor authentication to complete the setup process.

Note: From now on we should provide the time-based one-time password ( TOTP ) for every login after entering your password.

Reconfiguring 2FA

Follow these steps:

In the security center of the cPanel, click Two-Factor Authentication:

Now click Remove Two-Factor Authentication, and then click Remove to confirm. cPanel disables 2FA for your account and you are ready to set up fresh 2FA.

Conclusion:

Now that we know how to configure two-factor authentication in cPanel and done with setting it up, you should always type security code while login, soon after you enter a password.

Note: Security code changes every 30sec in the 2FA app and if you don’t have a security code you might face problems while login, so make sure that you have a security code ( TOTP ) every time you login.