Set user name and password as cipher text on s series switch

For S series switches (except S1700 switches) running a version earlier than V200R001, if the login password is configured as cipher text, the password is stored in cipher text in the configuration file. If the login password is configured as plain text, the password is stored in plain text in the configuration file. For S series switches (except S1700 switches) running V200R001 or a later version, the login password is stored in cipher text in the configuration file, regardless of whether the password is configured as cipher or plain text.

To configure Telnet login password as cipher text, perform the following steps:
[HUAWEI] user-interface vty 0 //User interface VTY0 is used as an example. The following shows how to configure the Telnet user name and password for login through the VTY0 user interface.
[HUAWEI-ui-vty0] protocol inbound telnet //By default, the switch uses Telnet when running V200R006 or an earlier version, so this step can be omitted. The switch uses SSH when running V200R007 or a later version, so this step is necessary.
[HUAWEI-ui-vty0] authentication-mode aaa //Configure AAA authentication, that is, you need to configure the user name and password.
[HUAWEI-ui-vty0] quit
[HUAWEI] aaa
[HUAWEI-aaa] local-user admin123 password irreversible-cipher Huawei@123 //Set the user name and password to admin123 and Huawei@123 respectively, and configure the password to display in cipher text. For switches running old versions, the keyword cipher may be used in the command for displaying passwords in cipher text.
[HUAWEI-aaa] local-user admin123 service-type telnet
[HUAWEI-aaa] local-user admin123 privilege level 15
[HUAWEI-aaa] return
save

Scroll to top