How to enable Two-Factor Authentication for DirectAdmin

How to enable Two-Factor Authentication for DirectAdmin

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.

Prerequisites

  • A DirectAdmin User
  • Google Authenticator on your phone, or another software/password manager where you can scan the QR code which generates the one-time codes.

Step 1: Log in to DirectAdmin

Two-Factor Authentication for DirectAdmin

Step 2: Two-Step Authentication

Open  “Two-Step Authentication”

Step 3: Generate Secret key

Click “Generate Secret” to generate a secret key

A secret key will be set:

da secret set

Scan the QR code with for example Google Authenticator

Step 4: Configure Settings

Before you can enable the 2FA, check if the settings are correct.

By default “Require valid Two-Step Authentication Code to login to this account” it’s not selected. Do not forget to select it.

da require 2fa

If the settings are correct, test if your 2FA is providing the correct one-time codes. Enter the one-time code in “QR Code” and check if it works. If it works you should see the following pop-up:

qrcode test

Click on “Save” to enable two-factor authentication for your account.

Step 5: Re-login to test two-factor authentication

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:

da 2fa login

Conclusion

In this article, we have shown how to enable and use two-factor authentication on DirectAdmin servers