{"id":18443,"date":"2026-09-30T08:58:32","date_gmt":"2026-09-30T05:58:32","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/cpanel-two-factor-authentication\/"},"modified":"2026-11-22T14:50:51","modified_gmt":"2026-11-22T11:50:51","password":"","slug":"cpanel-two-factor-authentication","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/cpanel-two-factor-authentication\/","title":{"rendered":"Turn On Two-Factor Authentication in cPanel: Protection Even If Your Password Is Stolen"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>The idea<\/b>Open <b>Two-Factor Authentication<\/b> in the Security section, click <b>Set Up Two-Factor Authentication<\/b>, scan the QR code with an authenticator app on your phone, and enter the 6-digit code to confirm. From then on cPanel asks for the code at every login.<\/div>\n<div class=\"hy-vid\"><div style=\"width: 1280px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18443-1\" width=\"1280\" height=\"720\" poster=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-twofactor-en.jpg\" preload=\"none\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-twofactor-en.mp4?_=1\" \/><a href=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-twofactor-en.mp4\">https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-twofactor-en.mp4<\/a><\/video><\/div><\/div>\n<div class=\"hkb-note\"><b>A question we often get:<\/b> &#8220;Is a strong password not enough? Why do I need an extra step every time?&#8221;<\/div>\n<p>A strong password stops guessing, but not leaks: a phishing page, an infected computer or a former employee. Two-factor authentication adds something an attacker does not have: a code that changes every 30 seconds on your own phone.<\/p>\n<h2>What you need first<\/h2>\n<ul class=\"hkb-list\">\n<li>A phone with an authenticator app: Google Authenticator, Microsoft Authenticator or any app that supports TOTP codes.<\/li>\n<li>The phone clock set to automatic, because the codes are time-based.<\/li>\n<li>Two minutes.<\/li>\n<\/ul>\n<h2>Turning it on step by step<\/h2>\n<ol class=\"hkb-steps\">\n<li><b>Open Two-Factor Authentication<\/b> in the Security section of cPanel. It says 2FA is not configured for your account.<\/li>\n<li><b>Click Set Up Two-Factor Authentication<\/b> a QR code appears with a text key below it.<\/li>\n<li><b>Scan the code with the app<\/b> using the app&#8217;s add button. If you cannot scan, type the text key.<\/li>\n<li><b>Enter the code shown in the app<\/b> six digits, then click the configure button.<\/li>\n<li><b>Test it<\/b> log out and back in; the code is requested after the password.<\/li>\n<\/ol>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-pf-en-p-2fa.webp\" alt=\"The cPanel Two-Factor Authentication page and setup button\" width=\"800\" height=\"451\" loading=\"lazy\" \/><\/figure>\n<div class=\"hkb-note warn\"><b>Save the text key<\/b> in a password manager or somewhere safe off the phone. It is the only way to add the account to a new phone without contacting support.<\/div>\n<h2>Changing or losing your phone<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Situation<\/th>\n<th>What to do<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>A new phone, and you still have the old one<\/td>\n<td>Use the app&#8217;s transfer feature, or remove 2FA and set it up again on the new phone<\/td>\n<\/tr>\n<tr>\n<td>You saved the text key<\/td>\n<td>Add the account by hand in the new phone&#8217;s app<\/td>\n<\/tr>\n<tr>\n<td>You lost the phone and the key<\/td>\n<td>Log in from the client area if you can, or open <a href=\"https:\/\/hyyatdomain.com\/submitticket.php\" target=\"_blank\" rel=\"noopener\">a support ticket<\/a> and we will disable 2FA after verifying your identity<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>The code is always rejected?<\/h2>\n<p>The usual cause is clock drift: the phone is a minute or more behind or ahead. Turn on automatic time in the phone settings and try a fresh code. If the app holds several accounts, make sure you read the right one.<\/p>\n<h2>What 2FA protects and what it does not<\/h2>\n<p>It protects the cPanel login itself. Email, FTP and the WordPress dashboard each need their own protection: separate strong passwords, and a dedicated 2FA plugin in WordPress. Our side of the protection is described in <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cpanel-security-section\/\">the cPanel Security section<\/a>.<\/p>\n<h2>From our support desk<\/h2>\n<ul class=\"hkb-list\">\n<li><b>A customer changed phones<\/b> and moved his apps except the authenticator, and could no longer log in. Had he saved the text key, he could have re-added it in a minute.<\/li>\n<li><b>A company with several people managing the panel.<\/b> Each can add the account to their own app with the same key during setup, or log in through their client area account.<\/li>\n<li><b>A customer&#8217;s codes were always rejected<\/b> because her phone clock was set by hand two minutes off. Automatic time fixed it.<\/li>\n<\/ul>\n<h2>Frequently asked questions<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>Is two-factor authentication required?<\/summary>\n<p>No, but it is the strongest protection after the password.<\/p>\n<\/details>\n<details>\n<summary>Does the phone need internet to generate codes?<\/summary>\n<p>No, authenticator apps work offline.<\/p>\n<\/details>\n<details>\n<summary>Does it affect logging in from the client area?<\/summary>\n<p>Client area access goes through your client area account, so protect that with a strong password too.<\/p>\n<\/details>\n<details>\n<summary>Can one app hold several accounts?<\/summary>\n<p>Yes, each account gets its own code.<\/p>\n<\/details>\n<details>\n<summary>Do I lose access for good if I lose my phone?<\/summary>\n<p>No, 2FA can be disabled after we verify your identity, or you can log in from the client area.<\/p>\n<\/details>\n<details>\n<summary>Should I turn on 2FA in the client area too?<\/summary>\n<p>Yes, we recommend it; protecting the client area protects cPanel access through it.<\/p>\n<\/details>\n<\/div>\n<div class=\"hkb-rel\"><b>Related guides<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/change-cpanel-password\/\">Change Your cPanel Password from Inside the Panel: Steps and What Changes with It<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-to-log-in-to-cpanel\/\">Logging in to cPanel: Three Ways In, and Where to Find Your Username and Password<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cannot-login-cpanel-correct-password\/\">Cannot Log in to cPanel with the Right Details? 6 Causes and Their Fixes<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/strong-password-password-manager\/\">How to Create a Strong Password and Store It Safely: A Password Manager Guide<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cpanel-security-section\/\">The Security Section in cPanel: IP Blocker, SSL Certificates, Two-Factor Authentication and Hotlink Protection<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.hyyat.com\/en\/kb\/website-control-panel-cpanel\/\">All cPanel guides \u2192<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The ideaOpen Two-Factor Authentication in the Security section, click Set Up Two-Factor Authentication, scan the QR code with an authenticator app on your phone, and enter the 6-digit code to confirm. From then on cPanel asks for the code at every login. A question we often get: &#8220;Is a strong password not enough? Why do [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":20946,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2749],"doc_tag":[],"class_list":["post-18443","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-website-control-panel-cpanel"],"year_month":"2026-11","word_count":712,"total_views":"2","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"cPanel Guides","term_url":"https:\/\/www.hyyat.com\/en\/kb\/website-control-panel-cpanel\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18443"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18443\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media\/20946"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18443"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18443"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}