Restoring the Password for Telnet Login
If you forget or want to change the Telnet login password, log in to the switch through the console port and set a new password for Telnet login.
# Logging in to the device through the console port.
- Connect the DB9 female connector of the console cable to the serial port (COM) on the PC, and connect the RJ45 connector to the console port on the device.
- Start the terminal emulation software on the PC. Create a connection, select the connected port, and set communication parameters.
- Baud rate: 9600
- Data bits: 8
- Stop bits: 1
- Parity: None
- Flow control: None
- Click Connect. Enter or configure the login password as prompted to log in to the switch.
# Take password authentication for VTY0 login as an example. Set the password to Huawei@123.
<HUAWEI> system-view [HUAWEI] user-interface vty 0 [HUAWEI-ui-vty0] protocol inbound telnet [HUAWEI-ui-vty0] authentication-mode password [HUAWEI-ui-vty0] set authentication password cipher Huawei@123 [HUAWEI-ui-vty0] user privilege level 15 [HUAWEI-ui-vty0] return <HUAWEI> save
# Take AAA authentication for VTY0 login as an example. Set the user name and password to admin123 and Huawei@123 respectively.
<HUAWEI> system-view [HUAWEI] user-interface vty 0 [HUAWEI-ui-vty0] protocol inbound telnet [HUAWEI-ui-vty0] authentication-mode aaa [HUAWEI-ui-vty0] quit [HUAWEI] aaa [HUAWEI-aaa] local-user admin123 password irreversible-cipher Huawei@123 [HUAWEI-aaa] local-user admin123 service-type telnet [HUAWEI-aaa] local-user admin123 privilege level 15 Warning: This operation may affect online users, are you sure to change the user privilege level ?[Y/N]y [HUAWEI-aaa] return <HUAWEI> save