Juniper
Step-by-step password recovery for the Juniper SRX300 (SRX Series (Junos)). Console access required.
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.
This procedure recovers root access to the Juniper SRX 300 running Junos OS when the root password or login passwords are lost. The device is booted into single-user mode to reset the root password — the configuration is preserved.
Console cable with a terminal session at 9600 baud, 8N1. Physical or remote power access to reboot the device.
request system reboot (or power-cycle).loader> (on older platforms) or OK (U-Boot on newer EX/QFX/MX platforms).boot -s-sh-4.2# or similar).mount -a (if it fails, try mount -o rw / first).passwd root — enter the new root password twice.exit (or press Ctrl+D). The device completes its normal boot.cli → configure → set system root-authentication plain-text-password → enter the password → commit → exit.set system login user <username> authentication plain-text-password → commit.commit in step 10 is important so the password change survives the next reboot (single-user mode changes the live password but the config still holds the old hash until committed).root-authentication is set and the system has system login restrictions — in that case, contact Juniper JTAC for the recovery procedure for your specific release.OK — type boot -s at the OK prompt.Before recovery, back up the config: request system configuration rescue save and export show configuration | save /var/tmp/backup.conf, or save /var/tmp/backup.conf from operational mode. After recovery, verify show configuration system root-authentication reflects the new password.