This section describes how to recover the password for the console port.
If the Console port password is forgotten, you can log in to the device through web, Telnet or SSH by using a level-3 or higher administrator account to change the Console port password.
Telnet login has security risks. You are advised to log in to the device through web or SSH . In this example, SSH is used as an example.
Log in to the device through SSH by using account admin1 and then confirm the permission assigned to the administrator account.
Run the display users command to view all login accounts. The account with the "+" mark is the current administrator account, and the number of the account is VTY 0.
<FW> display users
User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag
0 CON 0 47:47:45 no
Username : Unspecified
+ 34 VTY 0 16:32:31 SSH 172.16.30.93 pass no
Username : admin1
Run the display user-interface command to view the permission of the administrator account. The command output shows that VTY 0 corresponds to level 15 and has the permission to change the Console port password.
<FW> display user-interface
Idx Type Tx/Rx Modem Privi ActualPrivi Auth Int
0 CON 0 9600 - 15 15 P -
+ 34 VTY 0 - 15 15 A -
......
Change the Console port password based on the authentication mode of the Console port.
The Console port uses the password authentication mode.
Change the Console port password to Admin@1234.
<FW> system-view [FW] user-interface console 0 [FW-ui-console0] set authentication password Please configure the login password (8-16) Enter Password: Confirm Password:
The Console port uses the AAA authentication mode.
Change the password of account admin to Admin@1234.
<FW> system-view [FW] aaa [FW-aaa] manager-user admin [FW-aaa-manager-user-admin] password Enter Password: Confirm Password: