创建一个账户为is,密码为xxx


#创建用户

aaa

local-user is password cipher xxx

local-user is privilege level 15    #最高权限

local-user is service-type ssh    #走ssh协议

quit


#创建ssh user

ssh user is authentication-type password   #is用户的认证方式为密码认证

ssh user is service-type stelnet      #stelnet实际上就是ssh


#创建本地秘钥对

rsa local-key-pair create


#启用ssh服务

stelnet server enable


#配置vty界面支持的登录协议

user-interface vty 0 4

authentication-mode aaa    #认证方式为3a

protocol inbound ssh       #允许ssh登录