If you forget the root password for the router, you can use the password recovery procedure to reset the root password.
![]() |
Note: You need console access to recover the root password. |
To recover the root password:
Figure 2: Connecting to the Console Port on the J2300 Services Router

![]() |
Note: The J-series Services Router included in this figure is just an example. The physical location of the console port and serial port might vary on T-series or M-series routers. |
The terminal emulation screen on your management device displays the router’s boot sequence.
Hit [Enter] to boot immediately, or space bar for command prompt. Booting [kernel] in 9 seconds...
ok boot -sEnter full pathname of shell or 'recovery' for root
password recovery or RETURN for /bin/sh: recoveryuser@host# set system root-authentication
plain-text-passwordNew password: juniper1Retype new password:
root@host# commitcommit complete
Reboot the system? [y/n] y