步骤一、生成本地密钥对
[core]rsa local-key-pair create
The key name will be: Huawei_Host
The range of public key size is (2048 ~ 2048).
NOTES: If the key modulus is greater than 2048,
it will take a few minutes.
Input the bits in the modulus[default = 2048]: #直接回车就行
Generating keys...
............................++++++
...++++++
..++++++++
......++++++++
步骤二、配置VTY用户界面
[core]user-interface vty 0 4
[core-ui-vty0-4]authentication-mode aaa
[core-ui-vty0-4]protocol inbound ssh
[core-ui-vty0-4]quit
步骤三、创建SSH用户,并配置用户的认证方式为password
[core]ssh user shxke authentication-type password
步骤四、配置SSH用户的用户名和密码
[core]aaa
[core-aaa]local-user shxke password cipher shxke
Info: Add a new user.
[core-aaa]local-user shxke privilege level 3
[core-aaa]local-user shxke service-type ssh
[core-aaa]quit
步骤五、使能STelent功能,并配置用户的服务类型为STelnet
[core]stelnet server enable
Info: Succeeded in starting the Stelnet server.
[core]ssh user shxke service-type stelnet