set authentication password
Function
The set authentication password command configures a local authentication password.
By default, the local authentication password is not configured for the device.
Usage Guidelines
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.
Pre-configuration Tasks
Before running the set authentication password command, ensure that password authentication has been configured for the user interface.
Precautions
- The passwords must meet the following requirements:
The password is a string of 8 to 128 case-sensitive characters.
The password must contain at least two of the following characters: upper-case character, lower-case character, digit, and special character.
The special characters include spaces and the following:
`~!@#$%^&*()-_=+\|[{}];:'",<.>/?
Password entered in interactive mode is not displayed on the screen. The configuration file displays only the password encrypted using an irreversible encryption algorithm.
Users can press CTRL_C to cancel password modification in the interaction mode.
- If a password in cipher text is configured, enter a cipher text password contains 68 characters but users must obtain the password in plain text that is required for identity authentication.
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 identity authentication.
Example
# Set the local authentication password for the user interfaces VTY 0-4.
<AC6605> system-view [AC6605] user-interface vty 0 4 [AC6605-ui-vty0-4] set authentication password cipher Info: A plain text password is a string of 8 to 128 case-sensitive characters and must be a combination of at least two of the follow ing: uppercase letters A to Z, lowercase letters a to z, digits, and special characters (including spaces and the following :`~!@#$% ^&*()-_=+|[{}];:'",<.>/?). A cipher text password contains 68 characters. Current Password: New Password: Confirm New Password: