19
3
67
注册会员
1、开启stelnet权限
[SW1]stelnet server enable
2、创建本地密钥对
[SW1]rsa local-key-pair create
3、创建ssh用户名为admin123
[SW1]ssh user admin123 //创建用户admin123
[SW1]ssh user admin123 authentication-type password //创建用户admin123认证为密码认证
[SW1]ssh user admin123 service-type stelnet //用户admin123的服务类型为ssh
4、进入aaa模式下配置用户
[SW1]aaa //进入aaa模式
[SW1-aaa]local-user admin123 password cipher Admin@789 //配置admin123用户的密码为Admin@789
[SW1-aaa]local-user admin123 privilege level 15 //配置用户权限级别(0为最低级,15为最高级)
[SW1-aaa]local-user admin123 service-type ssh //允许用户ssh访问权限
5、配置vty界面支持的登录协议
[SW1]user-interface vty 0 4
[SW1-ui-vty0-4]authentication-mode aaa //认证为aaa
[SW1-ui-vty0-4]protocol inbound ssh //登录协议为ssh登入
举报
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|333cm ( 京ICP备16037542号 )
GMT+8, 2025-7-1 20:27 , Processed in 0.085817 second(s), 21 queries .
Powered by Discuz! X3.5
© 2001-2024 Discuz! Team.