> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting up two-factor authentication for cPanel

> Learn how to set up two-factor authentication for cPanel. Two-Factor adds additional security to your account! Just follow our easy step-by-step 2FA guide.

cPanel enables you to configure two-factor authentication (2FA), an improved security measure for the login interface. Two-factor authentication requires two forms of identification:

* Your password.

* A security code. An application on your smartphone generates a code that you must enter to log in. Without this security code, you cannot log in.
  > 📘 Note
  >
  > The smartphone app must be able to generate time-based one-time passwords (TOTP). cPanel recommends the following smartphone apps:
  >
  > * For Android™, iOS®, and Blackberry® — [Google Authenticator™](https://support.google.com/accounts/answer/1066447?hl=en)
  >
  > * For Android and iOS — [Duo Mobile](https://guide.duosecurity.com/third-party-accounts)
  >
  > * For Windows® Phone — [Authenticator](https://www.microsoft.com/en-us/store/p/microsoft-authenticator/9nblgggzmcj6)

## Enabling 2FA

To enable 2FA, follow these steps:

1. Log in to cPanel.
   > 📘 Note
   >
   > If you do not know how to log in to your cPanel account, please see [this article](/docs/accessing-cpanel).

2. On the **Tools** page, in the **Security** section, click **Two-Factor Authentication**:\
   ![](https://static.hosting.com/kb/kb-cpanel-jupiter-security-two-factor-authentication-icon.png)

3. Click **Set Up Two-Factor Authentication**:\
   ![](https://static.hosting.com/kb/2fa_setup.jpg)

4. Under **Step 1**, use your preferred two-factor authentication application (for example, DuoMobile) to scan the QR code. If you do not have a QR code reader, you can manually configure two-factor authentication within your app by entering the information provided under **Don’t have a QR code reader?**.![](https://static.hosting.com/kb/2fa_qrscreen.jpg)

5. Under **Step 2**, in the **Security Code** text box, type the security code you see in the 2FA app.

   > 🚧 Important
   >
   > You must type the security code within 30 seconds. After time expires, the app generates a new six-digit code.

6. Click **Configure Two-Factor Authentication**. cPanel enables 2FA for your account.

## Reconfiguring 2FA

To reconfigure 2FA, follow these steps:

1. Log in to cPanel.
   > 📘 Note
   >
   > If you do not know how to log in to your cPanel account, please see [this article](/docs/accessing-cpanel).

2. On the **Tools** page, in the **Security** section, click **Two-Factor Authentication**:\
   ![](https://static.hosting.com/kb/kb-cpanel-jupiter-security-two-factor-authentication-icon.png)

3. Click **Reconfigure Two-Factor Authentication**, and then follow the steps in the previous procedure for enabling two-factor authentication.

   > ❗️ Warning
   >
   > When you reconfigure 2FA for your account, any existing configurations no longer generate valid security codes. You must update every app with the new QR code.

## Removing 2FA

To remove 2FA, follow these steps:

1. Log in to cPanel.
   > 📘 Note
   >
   > If you do not know how to log in to your cPanel account, please see [this article](/docs/accessing-cpanel).

2. On the **Tools** page, in the **Security** section, click **Two-Factor Authentication**:\
   ![](https://static.hosting.com/kb/kb-cpanel-jupiter-security-two-factor-authentication-icon.png)

3. Click **Remove Two-Factor Authentication**, and then click **Remove** to confirm. cPanel disables 2FA for your account.

## Related articles

* [Enabling two-factor authentication for SSH](/docs/enabling-two-factor-authentication-for-ssh)

* [Two-factor authentication for resellers in WHM](/docs/two-factor-authentication-for-resellers-in-whm)
