/ @aarontechtalk
What we will cover...
Password recovery on a Juniper Firewall (Example SRX-300)
inherited a network, bought used lab gear
procedure may be different between Junos or Junos Evolved
srx password recovery will also remote configs and logs
must have physical/console access
power off
windows com port via usb
putty or any console terminal program
9600 - bps
8 - data bits
1 - stop bits
none - parity
none - flow control
now that you have a login prompt and you know your serial connection is good...
power off the juniper device
power on the juniper device, quickly be ready for the next step
when you see this message, hit the space bar
Hit [Enter] to boot immediately, or space bar for command prompt.
now you will see this prompt...
loader
type "boot -s"
this will boot into single-user mode
when you see this prompt, it instructs you to type "recovery" for root password recovery
Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh:
once you have typed "recovery", wait to settle at the root prompt...
root
at this point you can now recovery the root password by setting a new one.
root# set system root-authentication plain-text-password
New password:
Retype new password:
commit your change
[edit]
root# commit
exit out of the system and allow it to reboot
root# exit
Exiting configuration mode
root exit
Reboot the system? [y/n] y
root password recovery is now complete