Technical Documentation

Set the Root Password

Action

To set the root password, follow these steps:

  1. To set the root password, enter a clear-text password that the system will encrypt, a password that is already encrypted, or a secure shell (ssh) public key string.
  2. To enter a password that is already encrypted, use the following command to set the root password:
    [edit]root@# set system root-authentication encrypted-password New Password: password Retype new password: password
  3. To enter a password that is already encrypted, use the following command to set the root password:
    [edit]root@# set system root-authentication encrypted-password password
  4. To enter an ssh public string, use the following command to set the root password:
    [edit]root@# set system root-authentication ssh-rsa key
  5. Commit the changes:
    [edit]root@# commit
  6. Exit from configuration mode:
    [edit]root@# exit root@>

Published: 2010-01-25