The set authentication password command configures a local authentication password.
The undo set authentication password command cancels the local authentication password.
By default, no local authentication password is configured for devices.
Parameter | Description | Value |
---|---|---|
cipher | Indicates a password in cipher text. | - |
password | Specifies the password. | The value is a string of 8
to 16 characters or a string of 56 or 68 characters.
The password can be in plain or cipher text.
The password is displayed in cipher text in the configuration file regardless of whether it is input in plain text or cipher text. |
Usage Scenario
If password authentication is configured for users, you can run the set authentication password command to change the password or set a password in cipher text.
If you enter the plain text password when specifying cipher password, security risks exist. The interactive mode is recommended when users enter the password.
Pre-configuration Tasks
Password authentication has been configured for the user interface.
Precautions
You cannot run the undo set authentication password command to delete a password. The undo set authentication password command is retained for compatibility with other versions.
If the password authentication is configured but the password is not configured for the user interface, the user cannot log in to the device.
If the set authentication password command is executed multiple times, the latest configuration overrides the previous ones. You can run the set authentication password command to change the local authentication password. After the password is changed, a user who wants to log in to the device must enter the latest password for login authentication.
Users can press CTRL_C to cancel password modification in the interaction mode.
You are advised to change the password periodically to improve device security.
# Set a local authentication password for the user interfaces VTY 0-4 in interactive mode.
<HUAWEI> system-view [HUAWEI] user-interface vty 0 4 [HUAWEI-ui-vty0-4] set authentication password Warning: The "password" authentication mode is not secure, and it is strongly recommended to use "aaa" authentication mode. Please configure the login password (8-16) Enter Password: Confirm Password: [HUAWEI-ui-vty0-4]
<HUAWEI> system-view [HUAWEI] user-interface vty 0 4 [HUAWEI-ui-vty0-4] set authentication password cipher Huawei@123 Warning: The "password" authentication mode is not secure, and it is strongly recommended to use "aaa" authentication mode.