1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| SSH 配置 #新建rsa秘钥 rsa local-key-pair create
user-interface vty 0 4
authentication-mode aaa # 配置登录方式为aaa认证
protocol inbound ssh # 允许ssh协议登录
aaa
undo local-aaa-user password policy administrator # 关闭系统默认的密码到期更改提醒
local-user usertest password irreversible-cipher Cisco@123 privilege level 3
local-user usertest service-type terminal ssh
quit
stelnet server enable # 开启ssh服务
ssh user usertest service-type stelnet # 设置usertest使用的允许的协议
ssh user usertest authentication-type password # 设置usertest使用的认证方式
某些新版本需要添加可访问的源接口 ssh server-source all-interface //ssh协议 http server-source all-interface //http协议
|