Ubiquiti

Ubiquiti EdgeSwitch / UniFi Password Recovery

Recover access to Ubiquiti EdgeMAX and UniFi devices. UniFi hardware is controller-managed; EdgeMAX can be reset from the console.

Overview

This guide provides step-by-step instructions for resetting lost or forgotten administrative passwords on enterprise networking hardware. Follow the procedure below carefully to regain access while preserving your device configuration.

Prerequisites

Before proceeding with password recovery, ensure you have a console cable, terminal emulation software configured to 9600 baud, and physical access to the device.

Step 1: Establish Console Connection

Connect your terminal cable to the console port of the device and open your serial terminal session.

Step 2: Interrupt the Boot Sequence

Power cycle the hardware and issue a Break key sequence during initial system startup to enter ROMMON mode.

Step 3: Reset Password & Configuration

Bypass startup configuration loading, boot into system software, set your new credentials, and save changes back to non-volatile memory.

Overview

Two platform families behave differently. UniFi devices are adopted by a controller and have no meaningful local password. EdgeMAX (EdgeSwitch / EdgeRouter) have a local login recoverable from the console.

UniFi devices

  1. Recover access to the UniFi controller / UniFi OS account first (password reset by email).
  2. Once in the controller, the device's credentials are managed centrally — no local recovery is needed.
  3. If the device is adopted by an inaccessible controller, perform a factory reset (hold the reset button ~10 seconds) and re-adopt it.

EdgeMAX (EdgeSwitch / EdgeRouter)

  1. Connect a serial console (115200 8-N-1 on modern EdgeSwitch, 9600 on older models).
  2. Reboot and interrupt the boot loader to reach the system prompt.
  3. Choose the restore default configuration option, or boot and reset the password from the recovery menu.
  4. After booting, log in with the default credentials and set a new user password:
    set system login user <name> authentication plaintext-password <new-password>
    commit
    save

Note

Restoring defaults erases the configuration — take a backup first where possible.