Enable Two-Factor Authentication for cPanel

Introduction

If you use cPanel, one of the best things you can do to protect yourself, and your data, is to enable two-factor authentication for cPanel.  Recently, cPanel added this feature to their software suite and we’re ecstatic to announce that we’ve enabled it across our shared hosting environment.  This quick tutorial will show you how easy it is to enable 2-factor authentication for cPanel.

Prerequisites

In order to enable 2-factor authentication in cPanel, you’ll need just a few things:

  • A smart phone with a time-based one-time password (TOTP) app. We recommend the following:
    • Android: Authy, or Google Authenticator
    • iOS: Duo Mobile
    • Windows Phone: Authenticator
  • Access to your cPanel account

Enable Two-Factor Authentication for cPanel

To enable 2-factor authentication for cPanel, you’ll need to log in and navigate to the ‘SECURITY‘ section of cPanel.  From there, click on ‘Two-Factor Authentication’.
enable two-factor authentication for cPanel

Once there, click on ‘SET UP TWO-FACTOR AUTHENTICATION’.
enable two-factor authentication for cPanel

On Your Mobile Device

This is where you’ll need the assistance of your mobile device. Open the app of choice (in this case, we’re using Authy) and add an account.  In Authy, to add an account, click the three dots menu link in the upper-right corner, and select ‘Add Account’.  Once you’re on that screen, tap on ‘SCAN QR CODE‘.
enable two-factor authentication for cPanel
Simply aim your phone’s camera at your computer monitor and Authy will automatically capture the QR code.
enable two-factor authentication for cPanel

At this point, you will want to name the account (and change the “key” icon, if you wish to customize the icon by color, or other logo) something that will be easy to identify in the future.  Once you have named the account, click ‘DONE’.

Important

Make note of the six-digit code.  Enter that code into the ‘Security Code’ box, as seen below, in cPanel to actually enable two-factor authentication for cPanel.

enable two-factor authentication for cPanel
Once you have entered in the Security Code, click on ‘Configure Two-Factor Authentication’.  You will be presented with a message which reads:

Success: Two-factor authentication is now configured on your account.

At this point, you are done.  The next time you log in to cPanel, and every time after this, you  will be prompted for a security code after you enter your cPanel user ID and password.
enable two-factor authentication for cPanel
If you have any issues with this process, please don’t hesitate to open a support ticket and we will happily help you with the process.

  • 0 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

How to Password Protect a Directory in cPanel

You can lock a directory with a password using the cPanel's Directory Privacy. 1. Log in to your...

How to Disable Directory Browsing Using the htaccess Rule

For security purposes, you should disable directory browsing on your website so no one can see...

How to Protect the htaccess File

You can prevent unauthorized access to your htaccess file by adding this rule to the file: #...

How to Block Any IP Address via an htaccess Rule

If you want to block an IP Address, you can add the below lines to your htaccess file. order...

How to Restrict Access to Directories by IP Address

To secure your admin area from hackers, you should only allow access to your admin directory from...