root-authentication
Syntax
root-authentication { encrypted-password "password"; no-public-keys ssh-ecdsa name { from from; } ssh-ed25519 name { from from; } ssh-rsa name { from from; } }
Hierarchy Level
[edit system]
Description
Configure the authentication methods
for the root-level user, whose username is root
.
You can use the ssh-ecdsa
, ssh-ed25519
, or ssh-rsa
statements to directly configure SSH ECDSA,
ED25519, or RSA keys to authenticate root logins. You can configure
more than one public key for SSH authentication of root logins as
well as for user accounts. When a user logs in as root, the public
keys are referenced to determine whether the private key matches any
of them.
Options
encrypted-password "password" | Specify the MD5 or other password. You can specify only one encrypted password. You cannot configure a blank password using blank quotation marks (" "). You must configure a password whose number of characters range from 1 through 128 characters and enclose the password in quotation marks. |
no-public-keys | Disable SSH public key-based authentication. |
ssh-ecdsa name from from | Use an SSH ECDSA public key. You can specify one or more public keys. |
ssh-ed25519 name from from | Use an SSH ED25519 public key. You can specify one or more public keys. |
ssh-rsa name from from | Use an SSH RSA public key. You can specify one or more public keys. |
Required Privilege Level
admin—To view this statement in the configuration.
admin-control—To add this statement to the configuration.
Release Information
Statement introduced before Junos OS Release 7.4.