<Huawei>system-view
[Huawei]undo info-center enable
[Huawei]aaa
[Huawei-aaa]local-user zhangsan password cipher Huawei@123
[Huawei-aaa]local-user zhangsan service-type ssh
[Huawei-aaa]quit
[Huawei]stelnet server enable
[Huawei]ssh user zhangsan authentication-type password
[Huawei]ssh user zhangsan service-type stelnet
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]user privilege level 15
[Huawei-ui-vty0-4]protocol inbound ssh
[Huawei-ui-vty0-4]quit
[Huawei]display ssh server status
[Huawei]display ssh user-information zhangsan
下面为包含回显信息的命令过程,代码跟上面一样:
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]stelnet server enable
Info: Succeeded in starting the Stelnet server.
[Huawei]
Mar 2 2025 11:40:49-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 1, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei]aaa
[Huawei-aaa]local-user zhangsan password cipher Huawei@123
Info: Add a new user.
[Huawei-aaa]local-user zhangsan service-type ssh
[Huawei-aaa]quit
[Huawei]ssh user zhangsan authentication-type password
[Huawei]ssh user zhangsan service-type stelnet
Info: Succeeded in adding a new SSH user.
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]user privilege level 15
[Huawei-ui-vty0-4]protocol inbound ssh
[Huawei-ui-vty0-4]display ssh server status
SSH version :1.99
SSH connection timeout :60 seconds
SSH server key generating interval :0 hours
SSH authentication retries :3 times
SFTP server :Disable
Stelnet server :Enable
Scp server :Disable