rsa local-key-pair create # 生成RSA密钥对。
aaa
local-user admin password irreversible-cipher xinghen1216
local-user admin service-type ssh telnet
# 创建本地用户admin,并设置用户密码、服务类型
stelnet server enable
ssh user admin authentication-type password
ssh user admin service-type stelnet
user-interface vty 0 4
authentication-mode aaa
user privilege level 15
protocol inbound all