Cisco
Recover a lost ASA administrator password over the console port using ROMMON and the password-reset procedure. Requires physical access.
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.
ASA appliances store the administrator credential in the running configuration. Cisco provides a ROMMON-based password reset. Note that this procedure resets the ASA to a default configuration for the enable password and the saved configuration must be reloaded afterwards.
rommon #0>.rommon # > confreg 0x41rommon # > bootciscoasa> enableciscoasa# configure terminalciscoasa(config)# enable password <new-password>ciscoasa(config)# endciscoasa# copy running-config startup-configciscoasa# configure terminalciscoasa(config)# config-register 0x1ciscoasa(config)# endciscoasa# reloadASA password recovery clears the saved configuration unless you have a backup. Always take a configuration backup before starting.