Enforcing two-factor authentication in Proxmox VE

How to require a second factor for every Proxmox VE administrator, choose between TOTP, YubiKey and WebAuthn, and roll it out without locking anyone out.

On this page

Enforcing two-factor authentication in Proxmox VE for every administrator

Every administrator who can reach the Proxmox VE web interface or API holds the keys to the hypervisor, its guests and its storage, so a password alone is a weak control for that role. Proxmox VE supports TOTP, WebAuthn, YubiKey OTP and recovery keys as second factors, and the user management documentation describes them as options you attach to a user's login. The decision is less about whether to use a second factor and more about how to enforce it for every administrator rather than leaving it to individual choice. Teams usually need enforcement when administrators work in regulated environments, when several people share an admin account, or when the management interface is reachable from the internet or from networks with broad access.

Enforcement in Proxmox VE is set per authentication realm, so the realm an administrator signs in through determines whether a second factor is required. Before you change anything, inventory which realms your administrators use, including Linux PAM, the built-in Proxmox VE authentication server, LDAP, Active Directory and OpenID Connect, and confirm which accounts sign in through each one. Accounts that bypass the realm you enforce, such as a local root login, need a separate decision. Check the current behavior against the Proxmox VE user management documentation for your release, because the exact realm settings and recovery procedures are where lockouts usually begin.

Treat the rollout as a change with a fallback plan. Enroll at least two factors per administrator, store recovery keys in a controlled location, and confirm that a second administrator can unlock a locked account before enforcement starts. Run the change on a test cluster first, and keep a documented path to a working administrator account if a realm misconfiguration locks everyone out. The same discipline applies to lockout limits: decide the threshold and the unlock process with your security team in advance, so a burst of failed attempts does not turn into an outage for the people who run the platform.

Second-factor options and when each fits

This table compares TOTP apps, YubiKey OTP, WebAuthn security keys and recovery keys for Proxmox VE administrators, plus realm enforcement against per-user opt-in. Read each row against the people in your team and the cost of a lost device, since the loss path is often what decides the choice.

OptionWhere it suits administratorsWhat the user must carryHow loss is handledOperational cost
TOTP appBroad default for admins who sign in from laptops and phones, and for break-glass accounts that need a simple second factorAn authenticator app on a phone or device, with a seed enrolled during setupAdmin resets the TOTP entry or the user uses a recovery key; enrollment must be repeated on the new deviceLow licensing cost; support load comes from device replacement and enrollment resets
YubiKey OTPAdmins who want a hardware token with one-time codes and no app on a phoneA physical YubiKey that emits one-time passwords when touchedEnroll a second key in advance; without a spare, the admin relies on recovery keys or another adminHardware purchase per admin, plus a plan for keeping spares in a secure location
WebAuthn security keyAdmins who need phishing-resistant sign-in to the web interface and API, with a key they carry dailyA WebAuthn-capable security key, plus a supported browser at loginRegister at least two keys per admin so one lost key does not block accessHardware cost per key; the main effort is enrollment and tracking which keys belong to whom
Recovery keysNot a primary method; a fallback for admins locked out of their main factorA printed or stored set of single-use codes kept by the adminRegenerate the set after use; store the set offline and record who holds itNear zero cost; risk comes from unsafe storage of codes that bypass the second factor
Realm-enforced second factorOrganizations that require the same second factor for every administrator in a realm before any admin can sign inEvery administrator must enroll before the policy takes effect for their accountPlan a break-glass path with a tested recovery route before enforcing the realmAdministrator time for rollout and enrollment support; fewer exceptions to track later
Per-user opt-inPilot phases or mixed teams where some admins have not yet enrolledOnly users who chose to enroll must present a second factorEnrollment gaps stay open until someone checks each account, so auditors may ask how coverage is measuredLower rollout effort at first; ongoing review cost to confirm every admin is covered

Rolling out enforced two-factor authentication in order

This sequence moves every Proxmox VE administrator onto a second factor in controlled stages, so enforcement on the realm never happens before a tested fallback path exists. Each step ends with a check that you can confirm before moving on.

  1. Inventory administrators and authentication realms

    Export the list of users with administrative roles across every cluster, and note which realm each one authenticates against: Linux PAM, the Proxmox VE authentication server, LDAP, Active Directory or OpenID Connect. Identify service accounts and API tokens that cannot answer a second-factor prompt, and record who will act as the fallback administrator. The step is done when every administrator, realm and exception is written down and reviewed by the person who owns access control.

  2. Confirm a fallback administrator outside the pilot

    Choose at least one administrator who stays on the current login method during the pilot, and confirm that account can sign in to the web interface and API on every node. Check which realm it uses, because enforcement applies per realm and a fallback in a different realm keeps working if the first one is changed. The step is done when a second person has logged in with that account and the result is recorded.

  3. Enable second factors for a pilot group

    Pick a small pilot group of administrators and have each one enroll a second factor from their own user settings, choosing TOTP, WebAuthn, YubiKey OTP or a recovery key set as your standard allows. Do not enforce the realm yet, so the pilot users can still sign in without the factor if something fails. The step is done when every pilot account shows an enrolled factor in its user record.

  4. Store recovery keys for each enrolled administrator

    Have each pilot administrator generate recovery keys and store them in your approved secrets location, separate from the workstation they use for daily work. Record who holds the recovery material for each account so a lost device does not depend on one person. The step is done when each pilot user confirms the keys are stored and a second administrator can see that the recovery material exists.

  5. Verify two-factor login in a second session

    Each pilot administrator signs in from a new browser session or workstation, completing the second-factor prompt, while the original session stays open. Test the API with a token or ticket flow where your tooling depends on it, and check that a wrong code is refused and that the lockout limit behaves as your policy expects. The step is done when every pilot login succeeds with the factor and fails without it.

  6. Confirm the fallback administrator still signs in

    Before enforcing anything on the realm, sign in with the fallback administrator and confirm it can reach the web interface and perform a management action on each node. Confirm that the recovery procedure for unlocking a user is known to the people who will need it, and that your audit logging captures the sign-in events. The step is done only when this check passes, because enforcement can lock out every account in the realm that lacks a factor.

  7. Enforce the second factor on the realm

    Turn on the realm setting that requires a second factor, then extend the rollout to remaining administrators in batches, each batch enrolling before the next group starts. Keep the list of documented exceptions short, and review it with the security owner, since service accounts and tokens follow separate controls. The step is done when the realm enforces the factor and every administrator on the inventory is either enrolled or listed as an approved exception.

  8. Retire exceptions and review the result

    Remove temporary exceptions as their owners enroll, and confirm each cluster still shows the enforced setting after upgrades or configuration changes. Check the sign-in logs for failed second-factor attempts and unexpected locks, and schedule the next review of the administrator list. The step is done when the exception list is empty or contains only items with a named owner and a review date.

Lockout limits, recovery keys and unlocking users

Second factors fail in predictable ways: a lost phone, a clock that has drifted, a recovery key nobody saved. The cards below cover those failure modes, how a privileged administrator restores access, and what to record so each unlock can be reviewed later.

Lost or replaced authenticators

A lost phone or a broken YubiKey is the most common lockout for administrators. Before enforcement, inventory each admin's enrolled factors and require at least two, such as a TOTP app plus a WebAuthn key, so one lost device does not block access. Check that the replacement path is written down and that a second administrator, not only root, can perform it. Confirm in the user management wiki which factors can be removed by a user and which need an administrator.

User management wiki

Recovery keys: generation and storage

Recovery keys are single-use codes that let a user sign in when other factors are unavailable. Generate them at enrollment, store them in a sealed credential vault held by the security team, and record who holds each set. Unused keys matter as much as used ones: check how many remain for each administrator on a schedule, and regenerate the set after any use. Confirm in the documentation how recovery keys are issued and invalidated for the installed version.

TOTP time drift

TOTP codes depend on the clock on the user's device and on the Proxmox VE host. A device that is minutes off produces codes the server rejects, and this looks like a wrong password. Keep every host synchronized with NTP or chrony, and check the host clock before assuming a user has mistyped a code. Ask the user to confirm their phone uses automatic time, since manual clock settings are a frequent cause of rejected codes.

Lockout after repeated failures

Repeated failed logins can temporarily lock an account, which protects against guessing but also blocks legitimate administrators during an incident. Before rollout, read the lockout thresholds and lockout duration in the user management documentation for your installed Proxmox VE version, and record them in your runbook. Test the behavior in a non-production cluster so the on-call team knows what the screen shows and how long the lock lasts. Pair these settings with the restrictions covered in the web interface access controls.

Unlocking users and resetting factors

An administrator with root or another privileged account can unlock a locked user and reset a second factor from the user management interface. Confirm the exact steps and which role is required in the documentation for your version, then rehearse them on a test account. Verify the identity of the person asking for a reset through a second channel, such as a call to a known number, because a reset is an account takeover path if abused. Remove the old factor before enrolling the replacement.

Audit record for each unlock

Every unlock or factor reset should leave a record: who requested it, who verified identity, who performed the change, the time, and the reason. Store these records in a ticket linked to the account and keep the Proxmox VE task and authentication logs for the period your policy requires. Review resets each month for patterns, such as one account reset repeatedly or resets clustered around failed logins. Confirm with your auditors which fields they expect before the first review.

How a second-factor login flows through Proxmox VE

The login starts in the browser or API client, which sends credentials to the authentication service for the chosen realm. Once the password is accepted, Proxmox VE asks for the second factor (TOTP, WebAuthn, YubiKey OTP or a recovery key) and checks it against the factor stored for that user. Only after that check does the service issue a session to the web interface or API token request. A recovery path runs through a privileged administrator, who resets or re-enrolls the factor. Check that every administrator account has a factor enrolled before enforcement is switched on.

Login path from credentials to session, with the privileged admin recovery route.

Security considerations for administrator second factors

A second factor only helps if the store behind it, the recovery path around it and the access to the management interface are also controlled. The cards below cover the places where an enforced two-factor setup is most often weakened, and what to check in your own cluster before you call the rollout finished.

Protecting the factor store and recovery keys

Recovery keys let an administrator regain access when a phone or security key is lost, so they are as sensitive as a password. Decide who holds them, where they are stored offline and how a recovery event is reviewed. Check that generated recovery keys are not kept in shared documents, tickets or chat, and that a rotated or used key is removed from the user's record.

User management docs

Keeping API tokens out of the human factor

API tokens do not carry a human second factor, so an enforced TOTP or WebAuthn policy for interactive logins does not cover automation. Treat tokens as a separate access path: give each tool its own privilege-separated token with a narrow ACL, a defined expiry and a rotation owner. Confirm that no token holds broader rights than the interactive administrator it was derived from.

Restricting who can reach the management interface

A second factor does not help if an attacker can reach the login page from an untrusted network. Limit access to the web interface and API to a management network or an approved set of addresses, and confirm that cluster nodes do not expose the interface on routed production segments. Check the allow and deny settings from both inside and outside the management VLAN.

Auditing changes to second factors

Adding, removing or resetting a factor is one of the most valuable events to review, because it is how an attacker who has a password would try to bind their own device. Record who changed a user's factor, when, and from which session, and send those records to a log store that administrators of the cluster cannot silently edit. Test the alert by making a controlled change in a lab.

Removing the shared administrator account

A shared root or administrator login makes it impossible to tell which person performed a change, and one shared factor device breaks the link between an identity and its second factor. Give each administrator a named account in the realm you use, enforce the factor per user, and keep a break-glass account with its own strong credential and a documented, audited procedure for use.

Questions teams ask before enforcing two-factor authentication

What does it cost to enforce two-factor authentication in Proxmox VE?

The cost is mostly staff time, and it is paid either from your own team's hours or from a partner's written, fixed-scope quote. Internal cost comes from the people who define the policy, enroll each administrator, test realm settings and handle support requests during the change. Hardware keys, if you choose WebAuthn or YubiKey, are a one-time purchase, and the TOTP apps and recovery key process cost nothing extra. Ongoing cost is the recurring effort of enrolling new admins, replacing lost keys and reviewing lockout events. A quote should list the realms in scope, the number of administrators, whether identity provider changes are included, and who writes the rollback and recovery procedure. DeployOpen does not publish prices, so ask for a written scope and quote.

How long does a two-factor rollout take, and what makes it longer?

Duration depends on how many administrators you have, how many authentication realms they sign in through, and whether the identity provider must change. A small team using only the built-in Proxmox VE authentication server can often roll out TOTP quickly, while an organization that signs in through Active Directory or OpenID Connect needs the identity side agreed first, because the second factor is configured per realm. Other drivers are the number of clusters, the availability of hardware keys, and how many change windows your operations calendar allows. Ask any provider to break the timeline into enrollment, pilot, enforcement and review phases with named owners.

What does the client need to provide for a two-factor project?

You need a named list of every administrator and the realms they use, plus an owner who approves the policy. Each admin must be able to enroll a second factor during a scheduled session, so plan who has a phone for TOTP and who needs a hardware key for WebAuthn or YubiKey OTP. Provide a change window that covers the enforcement step, access to the cluster web interface and API from a management workstation, and a break-glass path that does not depend on the new factor. Your security team should also decide where recovery keys are stored, because they must be protected like other privileged credentials.

Can our own team enforce two-factor authentication without a partner?

Yes, if your team is comfortable with the Proxmox VE user management settings and has a tested recovery path. The work is configuration of second-factor requirements per realm, enrollment of each administrator, and documentation of lockout and unlock procedures. Teams most often struggle with the order of steps, especially enforcing the factor before every admin has enrolled, and with realm settings that differ between a local account and a directory login. A partner is useful when you want the rollout scoped in writing, tested against a non-production cluster and documented for auditors. Either way, make the decision based on your team's capacity during the change window.

What happens if an administrator is locked out after enforcement?

Another administrator with unlock rights resets the affected user's second factor or unlocks the account, and the locked user re-enrolls before they sign in again. This is why the rollout should keep at least one tested administrator who can make that change and why recovery keys should be issued and stored before enforcement. Also confirm how lockout limits behave on each realm, because repeated failed attempts can block access for a period. If every privileged user is locked out, recovery requires console or shell access to the host, so plan that access and its own controls in advance. Test this path in a lab before you rely on it in production.

Do Proxmox VE subscriptions change the two-factor features?

No. According to the Proxmox VE pricing page, all subscription tiers include the same software features, and the software itself can be used without a subscription. Subscriptions differ in support entitlements, such as the number of support tickets and response times, and in access to the enterprise repository. The enterprise repository requires a valid subscription key and is recommended for production, while the no-subscription repository is intended for testing and non-production use. So choose your subscription based on support and update needs, and confirm the current tier terms directly with Proxmox before you buy.

Will two-factor enforcement satisfy an auditor on its own?

No. Enforcing a second factor is one control, and auditors also look for the policy, enrollment records, access reviews and evidence that lockout and recovery procedures were tested. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications, and independent auditors or certification bodies make that determination. Ask your auditor which control references they expect you to map, and keep dated change records from the rollout so the evidence can be reviewed later.

What changes for operations after enforcement

Once a realm enforces a second factor, the work shifts from setting policy to running a steady set of tasks: enrolling new administrators, removing leavers, replacing lost or broken keys and reviewing recovery key use. Most of this is recurring, so the team that owns it needs a runbook and a named owner before enforcement goes live. The one-time work is the policy design, the pilot with a small group of administrators, and the first version of the documentation. Ask whoever quotes the engagement to separate those two lists, so the recurring part is visible in the budget and not hidden inside the project fee.

Lost keys and new hires generate most of the tickets. Each user's second factor is tied to their Proxmox VE account, so offboarding must remove the TOTP entry, WebAuthn keys and any recovery keys along with the user, and the team should check that the account is disabled and not only the password changed. For lost hardware keys, confirm in advance which administrator can reset another user's second factor, how that person verifies identity, and whether the reset is logged in the audit trail your organization keeps. Reviewing recovery key use should be a scheduled task, not something done after an incident, because a recovery key used quietly is one of the easiest ways for an attacker to get past a second factor.

Break-glass access needs its own test cycle. Keep at least one emergency path that does not depend on the day-to-day second factor, such as a separately stored recovery credential held under dual control, and test it on a schedule your change process approves. The runbook should list each realm and account type, the owner for each enrollment and reset step, the steps for locking and unlocking users, the lockout limits in force, the test dates and results, and where the recovery material is stored. Confirm with your security team how often reviews must happen and what evidence they need to keep, because those answers set the effort more than the Proxmox VE configuration does.

How DeployOpen scopes and delivers two-factor enforcement

DeployOpen plans, implements and hands over two-factor enforcement for Proxmox VE inside your own infrastructure. The work is agreed as a fixed scope in writing before it starts, so administrators, realm settings, recovery procedures and the rollout order are defined before any account is changed.

How we scope

  • Inventory every administrator account, realm and login path, including API token users and break-glass accounts.
  • Agree which second factors apply per realm, such as TOTP, WebAuthn or YubiKey OTP, and which recovery keys are issued.
  • Write the rollout order, lockout limits and unlock procedure into the scope before any account changes.

How we build

  • Configure realm-level second-factor requirements and test enrollment on a non-production cluster first.
  • Validate lockout behavior and the unlock procedure with a test administrator before production changes.
  • Run staged enrollment groups so each administrator can log in with a registered factor before the next group starts.

How we hand over

  • Document the configured realms, enrolled factor types, recovery key custody and unlock steps for your team.
  • Provide a runbook for onboarding new administrators and for recovering a user who lost every second factor.
  • Walk your security and operations staff through the audit trail and the checks they should repeat after changes.

How we support

  • Ongoing support, upgrades and periodic re-checks of administrator access are available as a retainer.
  • Review second-factor settings again after Proxmox VE upgrades or changes to your identity provider.
  • Confirm with your vendor and your own environment which factor types your Proxmox VE version supports before scoping.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.