Jump to content
Toggle menu
  • 51 articles
  • 24 files
  • 4 users
  • 750 edits
Tech-Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Recovering Password/Restore system defaults

From Tech-Wiki


Recover Junos OS root access or restore a Junos device to factory defaults.

ⓘ
Validation status
Reviewed against current Juniper Junos OS recovery and factory-default documentation on 27 September 2026.
!
Password recovery and factory reset are different operations
Use password recovery when the configuration should be retained. Use factory-default or zeroize only when configuration and stored secrets are intended to be removed.

Password recovery

Password recovery requires console access and the release/platform-specific Junos recovery procedure. Enter the recovery environment during boot, start the CLI/configuration workflow, and set a new root authentication password.

Load the factory-default configuration

>_Factory-default configuration
configure
load factory-default
set system root-authentication plain-text-password
commit

Securely zeroize the device

>_Zeroize Junos
request system zeroize
!
Zeroize is destructive and reboots the device
Juniper documents that zeroize removes configuration, logs, passwords, secrets and private keys before rebooting the device.

Official references