服务端
<Huawei>u t m
<Huawei>sys
[Huawei]sys AR1
[AR1]int g0/0/0
[AR1-GigabitEthernet0/0/0]ip add 10.1.1.1 24
[AR1-GigabitEthernet0/0/0]q
[AR1]stelnet server enable
[AR1]aaa
[AR1-aaa]local-user admin password cipher 123 创建用户为admin,加密密码为123
[AR1-aaa]local-user admin privilege level 15 admin用户权限登记为15
[AR1-aaa]local-user admin service-type ssh admin用户登录的服务为ssh
[AR1-aaa]q
[AR1]ssh user admin authentication-type all admin这个用户可以通过所有验证类型
[AR1]user-interface vty 0 4 进入虚拟远程终端
[AR1-ui-vty0-4]authentication-mode aaa 启用aaa认证
[AR1-ui-vty0-4]protocol inbound all 允许所有协议入站
[AR1-ui-vty0-4]q
客户端
<Huawei>u t m
<Huawei>sys
[Huawei]sys AR2
[AR2]int g0/0/0
[AR2-GigabitEthernet0/0/0]ip add 10.1.1.2 24
[AR2-GigabitEthernet0/0/0]q
[AR2]ssh client first-time enable ssh客户端首次启用
[AR2]stelnet 10.1.1.1
The server is not authenticated. Continue to access it? (y/n)[n]:y
Save the server's public key? (y/n)[n]:y
Enter password:
<AR1>