Cisco

Cisco ASA5520 Password Recovery

Step-by-step password recovery for the Cisco ASA5520 (ASA 5505-5585 (classic)). Console access required.

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

This procedure recovers administrator access to the Cisco ASA 5520 when the enable password is lost. The ASA loads with an empty configuration via ROMMON and the configuration register (confreg 0x41), then the config is restored — nothing is erased.

Prerequisites

Console cable (RJ-45 to DB-9 or USB) with a terminal session at 9600 baud, 8N1. Physical or remote power access to reboot the ASA. Break-signal capability (Ctrl+Break) from the terminal emulator.

Recovery Procedure

  1. Connect the console cable and open a terminal session (9600 8N1).
  2. Power-cycle the ASA (or issue reload).
  3. Within 60 seconds of power-on, send the break sequence (Ctrl+Break) repeatedly until the ROMMON prompt appears: rommon #>.
  4. Set the configuration register to skip the startup config: confreg 0x41 (0x41 = ignore the startup configuration; 0x1 = load normally).
  5. Boot the ASA: boot (or boot disk0:/asa<version>.bin if prompted).
  6. The ASA boots with an empty configuration. At the Type help or '?' for a list of available commands prompt, you are in privileged mode automatically (the prompt ends with #).
  7. Restore the startup configuration: copy startup-config running-config (if the startup config exists; it does — it was only skipped).
  8. Enter configuration mode: configure terminal.
  9. Remove the existing enable password: no enable password, then set a new one: enable password <new-password>. Also reset the login password if one was configured: password <new-password> (applies to console/SSH login).
  10. Restore the normal configuration register: config-register 0x1.
  11. Exit and save: end, then write memory.
  12. Reboot to verify: reload. Confirm the ASA boots with the restored config and the new passwords work.

Important Notes

Protecting Your Configuration

Before recovery, back up the config: copy running-config tftp://<server>/<filename> or copy running-config disk0:. After recovery, verify show running-config and show version (config register 0x1).