前置环境:端口配置IP地址,client和server之间可ping通,此处省略
server端:
开启stelnet
[Huawei]stelnet server enable
Info: Succeeded in starting the Stelnet server.
aaa模式相关配置
#进入aaa模式
[Huawei]aaa
# 添加用户admin和密码huawei
[Huawei-aaa]local-user admin password cipher huawei
# admin用于ssh服务
[Huawei-aaa]local-user admin service-type ssh
# admin权限等级15
[Huawei-aaa]local-user admin privilege level 15
vty相关配置
# 进入vty界面
[Huawei]user-interface vty 0 4
# 认证模式aaa
[Huawei-ui-vty0-4]authentication-mode aaa
# 指定VTY用户界面所支持所有协议为ssh
[Huawei-ui-vty0-4]protocol inbound ssh
添加ssh用户
# 添加ssh认证用户admin,此admin需与aaa中的保持一致
[Huawei]ssh user admin service-type stelnet
Info: Succeeded in adding a new SSH user.
# ssh用户通过password认证
[Huawei]ssh user admin authentication-type password
客户端:
# 命令用来使能SSH客户端首次认证
[Huawei] ssh client first-time enable
# 连接server的IP地址
[Huawei] stelnet x.x.x.x
标签:aaa,Huawei,admin,user,配置,server,命令,SSH,ssh
From: https://blog.csdn.net/uzumcc/article/details/140894898