Docs Home Return to Homepage
Get Started Login

How to Change Your cPanel Password and Turn On Two-Factor Authentication

Last updated Changelog

On this page

A strong password plus two-factor authentication (2FA) is the best protection for your hosting. With 2FA on, nobody can log in to your cPanel without the code from your phone, even if they know your password.

Change your password

  1. Log in to cPanel. Click the person icon at the top right and choose Password & Security. It’s also under Preferences on the home page.

    The account menu open with Password & Security highlighted

  2. Fill in Old Password, then your new one under New Password and New Password (Again). Aim for Very Strong on the Strength bar. Password Generator makes one for you; save it in your password manager before you use it. Then click Change your password now!

    Old Password, New Password, New Password (Again), Strength at Very Strong (100/100) and Change your password now! highlighted

  3. cPanel logs you out straight away and shows Your session cookie is invalid. Please log in again. That’s expected. Log in with your new password.

    The cPanel login page with “Your session cookie is invalid. Please log in again.”

Note: Your email accounts keep their own passwords, so changing your cPanel password doesn’t affect them. You can leave Enable Digest Authentication off. It’s only needed for Web Disk on some versions of Windows.

Turn on two-factor authentication

You’ll need an authenticator app on your phone, such as Google Authenticator, Microsoft Authenticator or 1Password.

  1. On the cPanel home page, open Security › Two-Factor Authentication and click Set Up Two-Factor Authentication.

    Two-Factor Authentication, not configured yet, with Set Up Two-Factor Authentication highlighted

  2. In your app, add an account and scan the QR code. If you can’t scan it, type in the Account and Key shown under Don’t have a QR code reader? instead. Enter the 6-digit code from the app as the Security Code and click Configure Two-Factor Authentication.

    Step 1 with the QR code (blurred here) and Step 2 with a Security Code entered and Configure Two-Factor Authentication highlighted

  3. cPanel says Two-factor authentication is now configured on your account. The Two-Factor Authentication page now shows it’s on.

    Two-factor authentication is configured for your account, with Remove Two-Factor Authentication highlighted

  4. From now on, after your password cPanel asks for the security code. Open your app, type in the current code and click Continue.

    The login page asking “Enter the security code for cranedemo” with a code entered and Continue highlighted

Turn it off or move it to a new phone

On the Two-Factor Authentication page, click Remove Two-Factor Authentication, then Remove to confirm. To move to a new phone, click Reconfigure Two-Factor Authentication and scan the new QR code with your new phone.

Troubleshooting

Problem What to do
My new password isn’t accepted Make it longer and mix in capitals, numbers and symbols until Strength is high enough, or use Password Generator.
I’ve forgotten my password Click Reset Password on the cPanel login page, or contact support.
My FTP program stopped connecting after I changed my password If it logs in with your cPanel username, it uses your cPanel password. Update it in the program.
The security code is refused Codes change every 30 seconds, so type in the one showing now. Check that your phone sets its time automatically.
I’ve lost my phone Contact support and we’ll help you get back in.
A script or app that logs in to cPanel with my password stopped working With 2FA on, cPanel refuses password logins from scripts and apps. Create a token under Security › Manage API Tokens and use that instead.

Snagged on something? Contact support and we’ll get you sorted.

Snagged on something?

Our sysadmins answer tickets around the clock.