The set authentication password command configure the authentication password.
By default:
Parameter | Description | Value |
---|---|---|
cipher password |
Specifies the password for the user interface. The authentication password displayed in ciphertext is irreversible. |
|
Usage Scenario
By default, you need no password authentication if you log in to the device through the Console interface, but you must provide correct password for authentication when you log in to the device through the VTY user interface. Otherwise, you cannot log in to the device successfully. You can use the set authentication password command to set the authentication password to ensure that authorized users can log in to the device securely.
Prerequisites
Before using the set authentication password command, ensure that the authentication mode in the user interface is password. If the authentication mode of the user interface is not password, run the authentication-mode password command in the user interface view to change the mode to password in the VTY user interface view.
Precautions
Warning: The initial password poses security risks.
The password needs to be changed. Change now? [Y/N]:
The message disappears only after the password is changed through the console port.
<HUAWEI> system-view [~HUAWEI] user-interface vty 0 4 [~HUAWEI-ui-vty0-4] authentication-mode password [*HUAWEI-ui-vty0-4] set authentication password Please configure the login password (8-16) Enter password: Confirm password:
<HUAWEI> system-view [~HUAWEI] user-interface console 0 [~HUAWEI-ui-console0] authentication-mode password [*HUAWEI-ui-console0] set authentication password cipher Hello-huawei123