Huawei switch is configured with consol password and vty password
# take the authentication method of login user interface as password authentication. The password is Huawei@123 as an example, and the configuration is as follows.
System-view [HUAWEI] user-interface console0 [HUAWEI-ui-console0] authentication-mode password [HUAWEI-ui-console0] set authentication password cipher Huawei@123 [HUAWEI-ui-console0] return save# uses AAA authentication to log in to the user interface. The user name is admin123 and the password is Huawei@123. The configuration is as follows. System-view [HUAWEI] user-interface console0 [HUAWEI-ui-console0] authentication-mode aaa [HUAWEI-ui-console0] quit [HUAWEI] aaa [HUAWEI-aaa] local-user admin123 password irreversible-cipher Huawei@123 [HUAWEI-aaa] local-user admin123 service-type terminal [HUAWEI-aaa] return save configuration vty [Huawi] user-interface vty0 4 (enter vty user interface) [HUAWEI-ui-vty0-4] authentication-mode? None: do not verify password: password authentication aaa:AAA authentication (set password for password authentication) [HUAWEI-ui-vty0-4] set authentication passowrd {cipher\ simple} cipher: encrypted simple: simple (set AAA authentication) [HUAWEI-ui-vty0-4] authentication-mode aaa enter the system attempt [HUAWEI-ui-vty0-4] aaa / / enter AAA view [HUAWEI-aaa] local-user [HUAWEI-aaa ] local-user service-type ssh configuration access type is SSH [Houwai] rsa local-key-pair create to generate local rsa key Configuration during SSH