webvaltas

Password reset

This procedure resets the ASA enable password and the local administrator password. It keeps the saved configuration.

Use it only when you cannot log in. You need console access.

Before you start

  • Connect the console cable. Set the terminal to 9600 baud, 8 data bits, no parity, 1 stop bit.
  • If you can log in, save a backup: copy running-config disk0:backup.cfg.
  • If no service password-recovery is configured, ROMMON asks to erase flash. Stop. This procedure cannot keep the configuration in that case.

Enter ROMMON

  1. Power off the unit.
  2. Power it on.
  3. Press Esc when the boot prompt appears. Press it again until rommon #> appears.
  4. If the prompt does not appear, power off and repeat. The window is short.

Skip the saved configuration

  1. Set the configuration register:

    confreg 0x41
    
  2. Boot the image:

    boot
    
  3. Wait for the ciscoasa> prompt.

Restore the configuration

  1. Enter privileged mode:

    enable
    

    Press Enter at the password prompt. The password is blank.

  2. Load the saved configuration:

    copy startup-config running-config
    

    Confirm if the unit asks.

  3. Enter configuration mode:

    configure terminal
    
  4. Set the new passwords:

    enable password <new-enable-password>
    passwd <new-login-password>
    username admin password <new-admin-password> privilege 15
    

    Use the existing local user name if it is not admin.

  5. Restore the normal boot setting:

    no config-register
    
  6. Exit and save:

    end
    write memory
    
  7. Reload:

    reload
    

Verify

  • Log in with the new enable password.

  • Log in to ASDM with the local administrator account, or with an empty user name and the enable password.

  • Check the configuration register:

    show version | include register
    

    The value must be 0x1.

Reference

Cisco, Recover passwords on the ASA 5506-X.