Ubiquiti
Step-by-step password recovery for the Ubiquiti EdgeSwitch 8-150W (EdgeSwitch (EdgeOS)). Console access required.
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.
Before proceeding with password recovery, ensure you have a console cable, terminal emulation software configured to 9600 baud, and physical access to the device.
Connect your terminal cable to the console port of the device and open your serial terminal session.
Power cycle the hardware and issue a Break key sequence during initial system startup to enter ROMMON mode.
Bypass startup configuration loading, boot into system software, set your new credentials, and save changes back to non-volatile memory.
This procedure recovers administrator access to the Ubiquiti EdgeSwitch 8-150W (Ubiquiti EdgeRouter/EdgeSwitch running EdgeOS) when the admin password is lost. EdgeOS devices can be recovered via the reset button (factory reset) or via U-Boot single-user boot (config-preserving password reset).
Console cable (EdgeRouter X/4/6P/8/12 use RJ-45 console on some models; EdgeRouter Pro and EdgeSwitch use RJ-45 console) with a terminal session at 115200 baud, 8N1 (EdgeRouter X/4/12 use 115200; EdgeRouter Pro-8 uses 115200 too). Physical access for the reset button.
ubnt> (or U-Boot>) prompt.boot -s (on most EdgeRouter models; if -s is not supported, set bootargs to include single: setenv bootargs console=ttyS0,115200 single then boot).mount -o remount,rw /passwd ubnt (the default user) or passwd root, entering the new password.reboot. Log in with the new password.ubnt / ubnt.load the config from the CLI if you have a config.boot backup.config.boot backup.ubnt/ubnt.Before recovery, back up the config: System → Backup in the web UI, or save from the CLI (saves config.boot). After recovery, verify the config loads and re-save.