No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Troubleshooting Guide

CloudEngine 16800, 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Handling Loss of the Password for Telnet Login

Handling Loss of the Password for Telnet Login

You can log in to a device through Telnet to remotely manage and maintain the device. If you forget the Telnet login password, log in to the device through the console port and set a new password for Telnet login.

Currently, the device supports two authentication modes for Telnet login.
  • AAA authentication: To log in to the device, you must have a user name and a password.
  • Password authentication: To log in to the device, you must have a password.

In this example, the configurations for VTY0 to VTY4 are the same.

After you log in to the device, run the display current-configuration configuration user-interface command to view the authentication mode of the VTY user. You can change the password without changing the authentication mode or configure a new authentication mode.

AAA Authentication

Set the user name and password to admin123 and Huawei@123, respectively. The configuration is as follows:

<HUAWEI> system-view
[~HUAWEI] user-interface vty 0 4
[~HUAWEI-ui-vty0-4] authentication-mode aaa
[*HUAWEI-ui-vty0-4] 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 level 15
[*HUAWEI-aaa] commit
[~HUAWEI-aaa] return
<HUAWEI> save
Warning: The current configuration will be written to the device. Continue? [Y/N]: 
Now saving the current configuration to the slot 1 
Info: Save the configuration successfully.

After the configuration is complete, you can use the user name admin123 and password Huawei@123 to log in to the device.

Password Authentication

Set the password to Huawei@123. The configuration is as follows:

<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-ui-vty0-4] user privilege level 15
[*HUAWEI-ui-vty0-4] commit
[~HUAWEI-ui-vty0-4] return
<HUAWEI> save
Warning: The current configuration will be written to the device. Continue? [Y/N]: 
Now saving the current configuration to the slot 1 
Info: Save the configuration successfully.

After the configuration is complete, you can use the password Huawei@123 to log in to the device.

Translation
Download
Updated: 2020-01-07

Document ID: EDOC1000060766

Views: 608541

Downloads: 2951

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next