By default, the Admin account is used to access the Command Line Interface (CLI) of the appliance. When the password is forgotten, the old password must be cleared and a new password must be defined. This article describes how to clear the old password and define a new one.
Note: Try KB30506 - How to reset the CLI admin password on a Junos Space [juniper.net] first where a USB stick is not required.
This article details a backup or alternate method.
When the appliance is initialized, the default login account is Admin and the password is abc123 .
Admin
abc123
Prepare a USB for booting an appliance by consulting the documentation on Junos Space installation .
Connect a console device to the console port of the Junos Space appliance, and then plug the USB installation drive into the USB port.
Physically power off the Junos Space appliance.
Power the Junos Space appliance back on.
At the boot prompt, type rescue-serial and press Enter :
rescue-serial
The system boots up from the USB and loads all the required drivers. After the drivers are loaded, the system will bring up a second window that lists the languages. Select English and press Enter .
You are now prompted to set up networking. Because you are only resetting the password, you do not need to enable networking. Select the Tab key to highlight NO , and then press Enter .
Rescue will locate and mount the installation. Select Continue to proceed.
After the distribution is found, Rescue will mount it to the /mnt/sysimage directory. Select OK to continue.
/mnt/sysimage
Change root to the normal disk instead of the USB image:
chroot /mnt/sysimage
Change the password by using the normal password change command:
passwd admin
2018-09-11: Added a note to the Solution section about KB30506 [juniper.net] - How to reset the CLI admin password on a Junos Space and mentioned that this article suggests a backup or alternate method; other minor (non-technical) formatting changes made