Securing Your Account with 2FA
Two-factor authentication (2FA) adds an extra layer of security to your DirectAdmin login. When enabled, you will need both your password and a time-based one-time code from an authenticator app to sign in.
Prerequisites
Before enabling 2FA, install an authenticator app on your mobile device:
- Google Authenticator - Available for iOS and Android.
- Authy - Available for iOS, Android, and desktop.
- Microsoft Authenticator - Available for iOS and Android.
- Any TOTP-compatible authenticator app will work.
Enabling Two-Factor Authentication
- Log in to DirectAdmin at
https://your-server:2222. - Navigate to Account Manager.
- Click on Two-Step Authentication (or 2FA).
- A QR code will be displayed on screen.
- Open your authenticator app and scan the QR code.
- Enter the 6-digit verification code displayed in your authenticator app to confirm setup.
- Click Enable or Save to activate 2FA.
Save the backup/recovery codes provided during setup in a secure location. If you lose access to your authenticator app, these codes are the only way to regain access to your account.
Logging In with 2FA
After enabling 2FA, the login process requires an additional step:
- Enter your username and password as usual.
- You will be prompted for a verification code.
- Open your authenticator app and enter the current 6-digit code.
- Click Verify to complete the login.
Disabling Two-Factor Authentication
- Log in to DirectAdmin (you will need your current 2FA code).
- Go to Account Manager > Two-Step Authentication.
- Click Disable to turn off 2FA.
If you have lost your authenticator device and backup codes, contact our support team for assistance with account recovery.