How to setup two factor authentication in cPanel


Two-Factor Authentication (2FA) adds an extra layer of security to your cPanel account. It requires a second step, beyond your password, to log in. This step typically involves using an authentication app on your mobile phone or desktop. Here’s how to set up 2FA in cPanel:


  • You’ll need a 2FA app installed. Authy is a recommended app for this purpose, available for iPhone, Android, Mac, PC, and as a Chrome browser extension.

Step 1: Access Two-Factor Authentication

  • Log in to your cPanel account.
  • In the Security section, click “Two-Factor Authentication.”

Step 2: Set Up Two-Factor Authentication

  • Click on “Set Up Two-Factor Authentication.”
  • Follow the on-screen instructions to configure 2FA.

Step 3: Add a New Account to Your 2FA App

  • Open your 2FA app (e.g., Authy).
  • Add a new account to your app by scanning the barcode provided on the cPanel screen or by manually entering the details.
  • The new account should appear in your app and start generating One-Time Password (OTP) codes.

Step 4: Enter a Valid 2FA Code

  • Return to the cPanel Two-Factor Authentication setup screen.
  • Enter a valid code from your 2FA app.
  • Click “Configure Two-Factor Authentication.”

Step 5: Confirmation

  • You’ll receive a confirmation message indicating that 2FA has been configured successfully.

Removing Two-Factor Authentication:

If you ever need to remove 2FA, follow these steps:

  • Go to the Two-Factor Authentication setup screen in cPanel.
  • Click “Remove Two-Factor Authentication.”
  • Confirm the removal, and 2FA will be disabled for your account.

Note: If you are unable to generate a 2FA code or use a backup code, and you don’t have access to your backup code, contact support for assistance. They will require proper identification to disable 2FA for your account.

By setting up 2FA in cPanel, you add an extra layer of security to your account, making it more resilient against unauthorized access.