Configuring a New Telnet Password
The Telnet or STelnet protocol can be to manage and maintain a device remotely. If the password of a Telnet or STelnet account is lost, use either of the following methods to configure a new password:
- Log in to the device using a user account with a higher privilege level (at least level 3) than the previous user account, and configure a new password for the previous user account.
- Log in to the device through the console port and configure a new password.
Two authentication modes can be used for Telnet or STelnet login:
- AAA mode: Enter a user name and password to log in.
- Password mode: Enter only the password to log in.
The following examples configure the same password for VTY user interfaces 0 to 4.
AAA Mode
- Create a Telnet user huawei and set its password to huawei@123.
<Huawei> system-view [Huawei] telnet server enable [Huawei] user-interface vty 0 4 [Huawei-ui-vty0-4] authentication-mode aaa [Huawei-ui-vty0-4] protocol inbound all [Huawei-ui-vty0-4] quit [Huawei] aaa [Huawei-aaa] local-user huawei password cipher huawei@123 [Huawei-aaa] local-user huawei service-type telnet ssh [Huawei-aaa] local-user huawei privilege level 15
After completing the configuration, you can enter the user name huawei and password huawei@123 to log in to the device.
- Run the save command to save the configuration so that the new password will not be lost after a system restart.
Password Mode
- Set the authentication mode to password authentication and the password to huawei@123 for VTY user interfaces 0 to 4.
Different software versions provide different commands for changing the authentication password:
- V200R002 and earlier versions: set authentication password [ cipher password ]
- V200R003 and later versions: set authentication password cipher
<Huawei> system-view [Huawei] telnet server enable [Huawei] user-interface vty 0 4 [Huawei-ui-vty0-4] authentication-mode password [Huawei-ui-vty0-4] protocol inbound all [Huawei-ui-vty0-4] set authentication password cipher Enter Password(<6-16>): //The actual display may be different. Confirm Password: [Huawei-ui-vty0-4] return
After completing the configuration, you can enter password huawei@123 to log in to the device.
- Run the save command to save the configuration so that the new password will not be lost after a system restart.