[edit]
root@# set system root-authentication plain-text-password
New password: password
Retype new password: password
or
[edit]
root@# set system root-authentication encrypted-password encrypted-password
or
[edit]
root@# set system root-authentication ssh-dsa public-key
or
[edit]
root@# set system root-authentication ssh-rsa public-key
10. Optionally, display the configuration to verify that it is correct.
[edit]
root@# show
system {
host-name host-name;
domain-name domain-name;
backup-router address;
root-authentication {
authentication-method (password | public-key);
}
name-server {
address;
}
}
interfaces {
fxp0 {
unit 0 {
family inet {
address address/prefix-length;
}
}
}
}
11. Commit the configuration to activate it on the router.
[edit]
root@# commit
131Copyright © 2019, Juniper Networks, Inc.
Chapter 20: Configuring the Junos Software