The Main procedure:
Set a protocol type, an authentication mode, and a user level for the VTY user interface.
Enable the STelnet server function and create an SSH user.
Set an authentication mode for the SSH user.
Generate a local key pair on the SSH server to implement secure data exchange between the server and client.
The configuration:
1.Set a protocol type, an authentication mode, and a user level for the VTY user interface.
[HUAWEI] user-interface vty 0 4
[HUAWEI-ui-vty0-4] authentication-mode aaa
[HUAWEI-ui-vty0-4] protocol inbound ssh
[HUAWEI-ui-vty0-4] user privilege level 15
2.Enable the STelnet server function and create an SSH user.
[HUAWEI] stelnet server enable
[HUAWEI] ssh user admin123
[HUAWEI] ssh user admin123 service-type stelnet
3.Set an authentication mode for the SSH user.
[HUAWEI] ssh user admin123 authentication-type password
[HUAWEI] aaa
[HUAWEI-aaa] local-user admin123 password irreversible-cipher abcd@123
[HUAWEI-aaa] local-user admin123 privilege level 15
[HUAWEI-aaa] local-user admin123 service-type ssh
[HUAWEI] ssh user admin123 authentication-type password