Fortinet
Reset a lost FortiGate administrator password using the maintainer account over the console port, then set a new admin password.
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.
FortiGate appliances can be recovered over the console port using the local maintainer account, which exists for exactly this purpose and is not exposed over the network.
bcpb<serial> form).config system adminedit adminset password <new-password>endadmin with the new password.Some releases require the factory-reset option from the console boot menu, which erases the configuration. Always keep a configuration backup before attempting recovery.
FortiSwitch and FortiAP devices managed by a FortiGate inherit credentials from the FortiGate — recover the FortiGate first.