{"id":562,"date":"2024-10-21T11:09:05","date_gmt":"2024-10-21T11:09:05","guid":{"rendered":"https:\/\/www.erodewebhosting.com\/knowledgebase\/?p=562"},"modified":"2024-10-21T11:12:40","modified_gmt":"2024-10-21T11:12:40","slug":"how-to-enable-two-factor-authentication-for-directadmin","status":"publish","type":"post","link":"https:\/\/www.erodewebhosting.com\/knowledgebase\/how-to-enable-two-factor-authentication-for-directadmin\/","title":{"rendered":"How to enable Two-Factor Authentication for DirectAdmin"},"content":{"rendered":"\n<p>Enable a Two-factor Authentication for <a href=\"https:\/\/www.directadmin.com\/\" target=\"_blank\" rel=\"noopener\">DirectAdmin<\/a><\/p>\n\n\n\n<p>This article will guide you through the process of enabling <a href=\"https:\/\/support.google.com\/accounts\/answer\/185839?hl=en&amp;co=GENIE.Platform%3DDesktop\" target=\"_blank\" rel=\"noopener\">two-factor authentication<\/a> for your DirectAdmin user account. Follow the steps outlined below to enable.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#prerequisites\">Prerequisites<\/a><ul><li><a href=\"#step-1-log-in-to-direct-admin\">Step 1: Log in to DirectAdmin<\/a><\/li><li><a href=\"#step-2-two-step-authentication\">Step 2:\u00a0Two-Step Authentication<\/a><\/li><li><a href=\"#step-3-generate-secret-key\">Step 3:\u00a0Generate Secret key<\/a><\/li><li><a href=\"#step-4-configure-settings\">Step 4: Configure Settings<\/a><\/li><li><a href=\"#step-5-re-login-to-test-two-factor-authentication\">Step 5: Re-login to test <\/a><\/li><\/ul><\/li><li><a href=\"#conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<p><a href=\"https:\/\/www.snel.com\/support\/enable-two-factor-authentication-in-directadmin\/#\" target=\"_blank\" rel=\"noopener\"><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A DirectAdmin User<\/li>\n\n\n\n<li>Google Authenticator on your phone, or another software\/password manager where you can scan the QR code which generates the one-time codes.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"step-1-log-in-to-direct-admin\">Step 1: Log in to DirectAdmin<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"526\" height=\"520\" src=\"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-content\/uploads\/2024\/10\/DA-BLACK-login.png\" alt=\"Two-Factor Authentication for DirectAdmin\" class=\"wp-image-570\" srcset=\"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-content\/uploads\/2024\/10\/DA-BLACK-login.png 526w, https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-content\/uploads\/2024\/10\/DA-BLACK-login-300x297.png 300w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"step-2-two-step-authentication\">Step 2:&nbsp;Two-Step Authentication<\/h4>\n\n\n\n<p>Open&nbsp; \u201cTwo-Step Authentication\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"355\" src=\"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-content\/uploads\/2024\/10\/image-7-1024x355.png\" alt=\"\" class=\"wp-image-569\" srcset=\"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-content\/uploads\/2024\/10\/image-7-1024x355.png 1024w, https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-content\/uploads\/2024\/10\/image-7-300x104.png 300w, https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-content\/uploads\/2024\/10\/image-7-768x266.png 768w, https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-content\/uploads\/2024\/10\/image-7-1536x533.png 1536w, https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-content\/uploads\/2024\/10\/image-7.png 1598w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"step-3-generate-secret-key\">Step 3:&nbsp;Generate Secret key<\/h4>\n\n\n\n<p>Click \u201cGenerate Secret\u201d to generate a secret key<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"297\" height=\"489\" src=\"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-content\/uploads\/2024\/10\/image-4.png\" alt=\"\" class=\"wp-image-566\" srcset=\"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-content\/uploads\/2024\/10\/image-4.png 297w, https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-content\/uploads\/2024\/10\/image-4-182x300.png 182w\" sizes=\"auto, (max-width: 297px) 100vw, 297px\" \/><\/figure>\n\n\n\n<p>A secret key will be set:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.snel.com\/wp-content\/uploads\/Screenshot-2021-10-06-at-13.52.34.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/www.snel.com\/wp-content\/uploads\/Screenshot-2021-10-06-at-13.52.34-700x362.png.webp\" alt=\"da secret set\" class=\"wp-image-95717\" title=\"da secret set\"\/><\/a><\/figure>\n\n\n\n<p>Scan the QR code with for example Google Authenticator<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"step-4-configure-settings\">Step 4: Configure Settings<\/h4>\n\n\n\n<p>Before you can enable the 2FA, check if the settings are correct.<\/p>\n\n\n\n<p>By default \u201cRequire valid Two-Step Authentication Code to login to this account\u201d it\u2019s not selected. Do not forget to select it.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.snel.com\/wp-content\/uploads\/requireda2fa.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/www.snel.com\/wp-content\/uploads\/requireda2fa-700x350.png.webp\" alt=\"da require 2fa \" class=\"wp-image-95725\" title=\"da require 2fa \"\/><\/a><\/figure>\n\n\n\n<p>If the settings are correct, test if your 2FA is providing the correct one-time codes. Enter the one-time code in \u201cQR Code\u201d and check if it works. If it works you should see the following pop-up:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.snel.com\/wp-content\/uploads\/Screenshot-2021-10-06-at-14.01.06.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/www.snel.com\/wp-content\/uploads\/Screenshot-2021-10-06-at-14.01.06.png\" alt=\"qrcode test\" class=\"wp-image-95721\" title=\"qrcode test\"\/><\/a><\/figure>\n\n\n\n<p>Click on \u201cSave\u201d to enable two-factor authentication for your account.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"step-5-re-login-to-test-two-factor-authentication\">Step 5: Re-login to test two-factor authentication<\/h4>\n\n\n\n<p>Log out and re-login to Directadmin to check if two-factor authentication is working. Once the username and password are entered correctly it will ask for your one-time code:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.snel.com\/wp-content\/uploads\/Screenshot-2021-10-06-at-14.05.23.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/www.snel.com\/wp-content\/uploads\/Screenshot-2021-10-06-at-14.05.23.png.webp\" alt=\"da 2fa login\" class=\"wp-image-95723\" title=\"da 2fa login\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h3>\n\n\n\n<p>In this article, we have shown how to enable and use two-factor authentication on DirectAdmin <a href=\"https:\/\/www.erodewebhosting.com\/shared-web-hosting\/\">servers<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enable a Two-factor Authentication for DirectAdmin This article will guide you through the process of enabling two-factor authentication for your DirectAdmin user account. Follow the steps outlined below to enable.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":572,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86],"tags":[],"class_list":["post-562","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-two-factor-authentication-for-directadmin"],"_links":{"self":[{"href":"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=562"}],"version-history":[{"count":1,"href":"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/562\/revisions"}],"predecessor-version":[{"id":571,"href":"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/562\/revisions\/571"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-json\/wp\/v2\/media\/572"}],"wp:attachment":[{"href":"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.erodewebhosting.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}