interface M-GigabitEthernet0/0/0
ip address 192.168.1.252 24
quit
user-interface vty 0 4
authentication-mode scheme
user-role network-admin
protocol inbound ssh
quit
local-user myroot class manage
password hash 123456
service-type ssh
authorization-attribute user-role network-admin
quit
ssh server enable
ssh usr mgr service-type stelnet authentication-type password
quit
save
原文:https://blog.51cto.com/huanghai/2694715