配置各设备的ssh
Sw:
[Huawei]sysname SW
[SW]undo info enable
[SW]stelnet server enable
[SW]rsa local-key-pair create
[SW]user-interface vty 0 4
[SW-ui-vty0-4]authentication-mode aaa
[SW-ui-vty0-4]protocol inbound ssh
[SW]aaa
[SW-aaa]local-user admin password cipher admin@123
[SW-aaa]local-user admin privilege level 15
[SW-aaa]local-user admin service-type ssh
Router:
[Huawei]sysna Router
[Router]undo inf enable
[Router]stelnet server enable
[Router]rsa local-key-pair create
[Router]user-interface vty 0 4
[Router-ui-vty0-4]authentication-mode aaa
[Router-ui-vty0-4]protocol inbound ssh
[Router-ui-vty0-4]qu
[Router]aaa
[Router-aaa]local-user admin password cipher admin@123
[Router-aaa]local-user admin privilege level 15
[Router-aaa]lo