public-key local create rsa
//创建rsa密钥
local-user admin
//创建用户admin
password simple xxxxx
//设置密码xxxxx
authorization-attribute user-role network-admin
//设置用户级别admin,此版本可能没有这条命令用leve 3
service-type ssh
//设置用户登录权限为ssh
user-interface vty 0 4
//vty 是虚拟窗口,0-4 表示同时允许5个客户端远程到交换机。
authentication-mode scheme
//认证模式为scheme
protocaol inbound ssh
//登录协议为ssh
ssh user admin authentication-type password
ssh user admin service-type stelnet
//在全局模式下配置admin认证类型为password
//在全局模式下配置admin服务类型为stelnet