GICT knowledge base
Set Up Two-Factor Authentication for Your cPanel Account
Published
cPanel two-factor authentication adds a time-based one-time code to the interactive account login. Your hosting administrator must make the feature available before you can enroll. Enabling it in WHM does not automatically enroll each cPanel user.
Prepare a private authenticator
Use a compatible TOTP authenticator on a device you control, with accurate time. Google Authenticator is one option, not the only supported application. Protect the device and any authenticator backup: possession of the enrollment secret allows another device to generate the same codes.
Enroll your own cPanel account
- Sign in through your trusted cPanel HTTPS address. Open Security > Two-Factor Authentication, or locate the equivalent feature in your current theme.
- Choose Set Up Two-Factor Authentication.
- Scan the displayed QR code with your authenticator, or enter the displayed account/key information manually. Do not photograph or share the QR code in a support ticket.
- Enter a current code and complete configuration. Keep a recovery path available before ending your existing session.
- Test a new private browser session using both the password and a fresh code, then sign out of the test session.
If a code fails or a device is lost
Check the device’s automatic time setting, selected account and code expiry first. Avoid repeated guesses. Reconfiguration replaces the enrollment secret, so an old authenticator entry may stop working. If you cannot authenticate, ask the hosting administrator for identity-verified recovery; do not disable protection globally for all users.
Understand what it protects
TOTP reduces the risk from a stolen password but can still be phished. Use a trusted login address and a unique password. Do not assume interactive 2FA automatically protects all API requests: cPanel documents separate security-policy extensions for API access, and API tokens require their own permission and revocation controls.
Reference: cPanel two-factor authentication.
Reviewed October 15, 2026. Documentation review; no enrollment, recovery or live login test was performed.
Related guides
How to Install and Uninstall JetBackup for cPanel
How to Install JetBackup for cPanel. JetBackup is one of the leading backup solutions for cPanel & WHM that offers a user-friendly GUI. It provides
WHMSetup SendGrid on your cPanel VPS/Server
Setup SendGrid on your cPanel VPS/Server. SendGrid provides a cloud-based service for reliable transactional and marketing email.
WHMChange cPanel Nameserver Software to PowerDNS Carefully
Review WHM nameserver selection, resolver dependencies, cluster compatibility and DNSSEC requirements before a planned PowerDNS service change.
WHMTroubleshooting Jailed Shell on OpenVZ
cPanel/WHM providing Jailed shell environment for users, this feature giving high-level security for users when doing ssh access to their server.
