For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /directadmin/security/how_to_enable_two_step_authentication.md.

How to Enable Two-Step Authentication (2FA) in DirectAdmin

Info

If you are using the Standard theme on DirectAdmin, switch to the Refreshed theme as shown in How to change theme or layout on DirectAdmin.

In the Refreshed Theme

Log in to DirectAdmin

Log in to your DirectAdmin panel.

Open Two-Step Authentication

Click the Two-Step Authentication button under Advanced Features.

Two-Step Authentication under Advanced Features

Generate a secret

Click Generate Secret.

Generate Secret button

Add the secret to your authentication app

Enter the code displayed, or scan the QR code, in your authentication app. Then click the X button.

QR code and secret

Require the code at login

Tick the box Require valid Two-Step Authentication Code to login to this account.

Require two-step code checkbox

Save the settings

Click Save to enable Two-Step Authentication (2FA) in DirectAdmin.

Save button

In the Standard Theme

Click here to show the steps

Log in to DirectAdmin

Log in to your DirectAdmin panel.

Open Two-Step Authentication

Click the Two-Step Authentication button under Advanced Features.

Two-Step Authentication under Advanced Features

Generate a secret

Click Generate Secret.

Generate Secret button

Add the secret to your authentication app

Enter the code displayed, or scan the QR code, in your authentication app. Then click the X button.

QR code and secret

Require the code at login

Tick the box Require valid Two-Step Authentication Code to login to this account.

Require two-step code checkbox

Save the settings

Click Save to enable Two-Step Authentication (2FA) in DirectAdmin.

Save button