A password alone can be guessed or stolen. Two-factor authentication (2FA) adds a second step: a six-digit code from an app on your phone. Even if someone learns your password, they cannot log in without your device.
Before you start
- Install an authenticator app on your phone, for example Google Authenticator or Duo Mobile.
- Two-factor authentication must be enabled on the server. If you do not see it in cPanel, contact us.
Turn it on
- Log in to cPanel and open Two-Factor Authentication in the Security section.
- Click Set Up Two-Factor Authentication.
- In your app, scan the QR code. If you cannot scan it, enter the Account and Key shown on screen by hand.
- Type the six-digit code from the app into Security Code.
- Click Configure Two-Factor Authentication.
From now on, cPanel asks for the code after your password.
If the code is rejected
The code depends on the time. If your phone’s clock is wrong, the code will not match, and cPanel shows an invalid security code message. Turn on automatic date and time on your phone, then try again.
If you lose your phone
Without the device you cannot log in. Contact us and we can switch 2FA off for your account so you can set it up again on a new device. Keep the Key from the setup screen in a safe place, since it lets you recreate the codes in a new app.
Change or remove it
- Reconfigure sets it up again, for example on a new phone. Other open cPanel windows are logged out.
- Remove Two-Factor Authentication turns it off. We do not recommend that.
2FA works best together with a strong, unique password. See how to log in to cPanel and how to secure your cPanel website.

