-
配置aaa:
1 2 3 4
aaa local-user [name] password irreversible-cipher [密码] local-user [name] privilege level [1-15] local-user [name] service-type ssh
-
配置ssh
1 2 3
ssh user [name] ssh user [name] authentication-type password ssh user [name] service-type stelnet
-
开启stelnet功能
1
stelnet server enable
-
生成秘钥
1
rsa local-key-pair create
-
配置vty
1 2 3
user-interface vty 0 4 authentication-mode aaa protocol inbound ssh