H3C 交换机开启ssh

交换机配置如下:

[IT-test]public-key local create rsa        #生成rsa key,v7系统版本可不做此步
[IT-test]public-key local create dsa        #生成dsa key,v7系统版本可不做此步

[IT-test]local-user zhang        #创建用户zhang
[IT-test-luser-zhang]password simple 123456        #配置用户密码,有些系统配置简单密码可能报错,先用 undo password-control complexity user-name check 不检查密码包含用户名信息,password-control length 4 密码长度最小4位
[IT-test-luser-zhang]service-type ssh telnet level 3        #分配服务类型ssh、telnet权限等级为3,v7系统版本用 authorization-attribute user-role level-15 给用户授权
[IT-test-luser-zhang]quit        #退出

[IT-test]user-interface vty 0 4        #进入用户接口,允许远程登入的用户为0-4,只能有5个用户同时登入
[IT-test-ui-vty0-4]authentication-mode scheme        #认证模式
[IT-test-ui-vty0-4]protocol inbound all        #协议为所有
[IT-test-ui-vty0-4]idle-timeout 15            #15分钟后未操作自动登出用户
[IT-test-ui-vty0-4]quit        #退出

[IT-test]ssh user zhang service-type stelnet        #配置用户zhang服务类型ssh
[IT-test]ssh user zhang authentication-type password        #配置用户zhang认证模式为密码

[IT-test]ssh server enable        #全局开启ssh服务


<IT-test>free user-interface vty 2        #断开VTY 2的远程用户连接,用户不能使用该命令释放自己

 

posted @ 2021-08-05 16:22  凡是過往;皆為序章  阅读(858)  评论(0编辑  收藏  举报