Update or Change Juniper User Password via CLI

Login to the switch
Entering configuration mode (configure)
Edit system login (edit system login)
Edit user (edit user )
Set the Password (set authentication plain-text-password)
Enter the password (New password: type password here / Retype new password: retype password here)
Commit and save the changes (Commit)

configure
username@sw01> configure
Entering configuration mode
edit system login
username@sw01># edit system login
{master:0}[edit system login]
edit user
username@sw01># edit user
{master:0}[edit system login user ]
set authentication plain-text-password
username@sw01# set authentication plain-text-password
New password: type password here
Retype new password: retype password here
Commit

Restore Juniper Configuration File

The most efficient way to restore a Juniper Configuration file is to restore it from a USB drive.

The USB drive must be formatted in FAT32 so that the Juniper device can read it.

Mount USB

root@juniper> mkdir /var/tmp/usb
root@juniper> mount_msdosfs /dev/da1s1 /var/tmp/usb
root@juniper> ls /var/tmp/usb

Restore Configuration file

root@juniper> configure 
Entering configuration mode
root@juniper> load override /var/tmp/usb/juniper.conf.gz
root@juniper> commit

Set Root Password on Juniper

Step-by-Step Procedure

To configure a plain-text password for the root-level user:

  1. Type the set command for the plain-text password and press Enter.
    [edit]
    user@host# set system root-authentication plain-text-password
    New password:
  2. Type the new password next to the New password prompt and press Enter.
    New password: new-password
    Retype new password:
  3. Retype the same password next to the Retype new password prompt and press Enter.