Juniper: Root Password Recovery In Recovery Mode
Table of Contents
Summary
Needed to reset the root password on this Juniper SRX220 so we could start using it in a lab. These are the steps I used to do that.
Boot to single user mode first. There is a note for this found below.
Root Password Recovery
When we enter the recovery mode. We should enter cli mode on the device as root. The prompt we get should look like this.
root@lab-srx220-r01>
Went into the configuration mode.
configure
Output below is the output displayed when entering configuration mode.
Entering configuration mode
[edit]
root@lab-srx220-r01#
Reset the root password usign the following command.
set system root-authentication plain-text-password
This will require you to enter in the password twice.
New password:
Retype new password:
Then we can commit our changes.
commit
Reboot the system. Using the following command.
request system reboot
It should request that we confirm that we want to reboot. Once we enter yes. It should start the process. Note that the default is no. So, we are good on that.
Reboot the system ? [yes,no] (no) yes
Shutdown NOW!
[pid 1654]
After doing all of that. I could login to the device as root using the password we set.
Reference
This is a list for reference I used while writting this.