Enable a Two-factor Authentication in DirectAdmin
In this article, you will learn how you can enable two-factor authentication for your DirectAdmin user. Please follow the instructions below.
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
Go to https://directadmin.snel.com:2222/ and log in.
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:
Scan the QR code with for example Google Authenticator
Step 4: Configure Settings
Before you can enable the two-factor authentication, check if the settings are correct.
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:
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:
Conclusion
In this article, we have shown how to enable and use two-factor authentication on DirectAdmin servers.
Leave a Reply