The set authentication password command sets a password for password authentication on a FW.
The undo set authentication password command deletes a password for password authentication on a FW.
By default, no password is set on the device for password authentication.
| Parameter | Description | Value |
|---|---|---|
cipher |
Specifies that the password for password authentication is saved in ciphertext. |
- |
password |
Specifies the password that you want to set. |
The passwords must meet the following requirements:
|
Usage Scenario
You need password authentication when you log in to the device.
Prerequisites
Before using the set authentication password command, ensure that the authentication mode in the administrator interface is password. If the authentication mode of the administrator interface is not password, run the authentication-mode command in the administrator interface view to change the mode to password.
Procedure
The set authentication password command sets a local authentication password. If the cipher is not specified in this command, a password of 8 to 16 characters will be set in man-machine interaction mode.
Precautions
If the set authentication password command is run more than once, and only the latest configuration takes effect. When logging in to the device again, you must enter the correct password so that the authentication can be successful, and you can successfully log in to the device.
The authentication mode of the administrator interface has been set to password authentication. The undo set authentication password command does not takes effect any more. The undo set authentication password command is retained for compatibility with other version.
You are advised to change the password periodically to improve device security.
When you run the set authentication password command to set a local authentication password, you can press CTRL_C to cancel the operation.
Do not forget a ciphertext password because it is irretrievable.
# Set the local authentication password for the administrator interfaces VTY 0 to VTY 4 to Hello-huawei.
<sysname> system-view [sysname] user-interface vty 0 4 [sysname-ui-vty0-4] authentication-mode password [sysname-ui-vty0-4] set authentication password Please configure the login password (8-16) Enter password: Confirm password: [sysname-ui-vty0-4]
# Set the local authentication password in the encrypted text for the administrator interfaces VTY 0 to VTY 4 to Admin@123.
<sysname> system-view [sysname] user-interface vty 0 4 [sysname-ui-vty0-4] authentication-mode password [sysname-ui-vty0-4] set authentication password cipher Admin@123