Description

[Ex9204] Unable to recover the root password in Ex9204

Symptoms

User unable to login the switch, we tried to recover the password; however, its failed

Solution

  • Users were unable to log in to the device using the root password.
  • As the next step, we attempted a password recovery.
  • We performed a hard reboot on the switch and interrupted the boot process by pressing Ctrl+C.
  • After that, we accessed the boot menu and selected the recovery mode option.

1. Recover [J]unos volume

2. Recovery mode - [C]LI

 

3. Check [F]ile system

 

4. Enable [V]erbose boot

 

5. [B]oot prompt

 

 

Choice:

Booting Junos in CLI recovery mode ...

Verified /boot/manifest signed by PackageProductionECP256_2024

Verified /boot/loader.rc

Verified /boot/support.4th

1744951551 [2025-04-18 04:45:51 UTC] mgd start

NOTE: Recovery mode is not allowed as the console is in 'insecure' mode.

NOTE: Please reboot the box in single user mode.

NOTE: Please press 'ENTER' to reboot.

 

  • However, we were not able to proceed with the recovery, as we encountered an error stating that recovery mode is not allowed because the console is in 'insecure' mode.
  • Further we could see that the the command set system ports console insecure is not supported on EX platforms. This means that on EX switches, this feature does not prevent password recovery via booting into single-user mode. The device can be recovered by rolling back the configuration using any other super-user login to the device over console or SSH/Telnet/HTTP login. If this does not work, the device can be recovered by using format installation.
  • However, in Ex9204 if the set system ports console insecure  is enabled we can't recover the password.

 

Modification History

2025-04-18 : Article Created