Skip to main content

How to Set Up Two-Factor Authentication for RDP with Duo

Add Duo two-factor authentication to RDP logins on your VPS — setup, enrollment, and how to avoid locking yourself out.

Two-factor authentication (2FA) enhances security by requiring two separate methods of verification to confirm your identity: something you know (a username and password) and something you have (a smartphone app to approve requests). 2FA safeguards against phishing, social engineering, and brute-force attacks, protecting your account even if your credentials are compromised.

Duo, a third-party solution by Cisco, integrates with Microsoft Windows systems to enable 2FA for Remote Desktop and local logins. Note: We are not affiliated with Duo; this guide is for informational purposes.


How to Set Up Duo for Your VPS


Step #1: Sign Up for Duo

  • Visit Duo's website and create an account.

  • Set up 2FA for your mobile device (recommended).

  • Free for up to 10 accounts (no payment method required for free use).


Step #2: Add Microsoft RDP to Duo

  • Log in to Duo's dashboard and click Protect an Application.

    Duo Admin Panel — Protect an Application button
  • Search for RDP and select Microsoft RDP.

    Duo application catalog search results showing Microsoft RDP
  • Click Protect this Application to obtain your integration key, secret key, and API hostname.

    Treat the secret key like a password for security.


Step #3: Install Duo on Your VPS

  • Download Duo Authentication for Windows Logon:

  • Run the installer with administrative privileges.

  • During installation, enter your API hostname, integration key, and secret key:

    Duo Authentication for Windows Logon installer — API hostname and key fields
  • Ensure your VPS can communicate with Duo's service over HTTPS (port 443).

  • Complete the installation and enable "Only prompt for Duo authentication when logging in via RDP" for optimal performance.


Step #4: Add Your VPS User to Duo

  • In Duo's admin panel, go to Users and click Add User.

  • Add the username for your VPS (must match exactly).


Step #5: Enroll Devices

  • Send an enrollment email to your user from Duo's interface.

  • Follow the email instructions to register devices.


Step #6: Test Your Setup

  • Attempt to log in to your VPS as a Duo-enrolled user.

  • Confirm Duo authentication options appear:

    • Duo Push: Approve via a smartphone app.

    • Call Me: Authenticate via phone call.

    • Passcode: Use a passcode generated by the app, SMS, or token.


Troubleshooting

  • Locked out after enabling Duo: use your VPS provider's console/recovery access (not RDP) to log in locally and adjust or temporarily disable the Duo Windows Logon settings.

  • No Duo prompt appears at login: confirm the Duo Authentication for Windows Logon service is running, and that the VPS can reach Duo's service over port 443.

  • Lost access to enrolled device: generate a bypass code from the Duo admin panel for that user as a temporary backup method.


Recommendations

  • Ensure devices and users are enrolled before logging out.

  • Keep a backup method (e.g., passcodes) to prevent lockouts.

By enabling Duo, you add a robust layer of security to your VPS, protecting sensitive data and ensuring only authorized users gain access.


Need Assistance?

Our support team is available 24/7. If you have any questions or run into issues, open a support ticket from your QuantVPS dashboard and we'll get back to you as quickly as possible.

Did this answer your question?