Get your free beta license ↗
Panel and server · UrbeStack

Locked out of the web interface after losing the second factor

Last updated 30 Nov 2026
Summary

You cannot sign in to the web interface after losing your second-factor device if you have no recovery code. Root can turn off the second factor for the UrbeStack account at the server's shell.

Symptoms

The web interface accepts your password, then asks for a code from the device you lost.

Cause

With the second factor on, signing in requires your password and either a code from the device or one of the account's recovery codes.

Resolution

  1. As root at the server's shell, turn off the account's second factor.

    urbestack-user-set --name NAME --second-factor off
  2. Sign in with the account's password, then enroll a new device from the account page.

  3. For an account that still has its device, get new recovery codes with urbestack-user-second-factor-codes --name NAME.