H3C交换机新版本Telnet关闭密码复杂性
关闭密码策略:
[switch] undo password-control enable //关闭密码策略
[switch] password-control length 4 //密码长度必须为4位
[switch] undo password-control complexity user-name check //关闭密码中不能包含用户名
如设置密码还有报错,请参考以下指令:
[switch] password-control enable //开启密码策略 [switch] password-control aging 7 //7天有效 [switch] password-control length 10 //长度为10 [switch] password-control composition type-number 3 type-length 1 //密码复杂度(3个字符) [switch] password-control complexity user-name check //密码中不能包含用户名 [switch] password-control complexity same-character check //禁止连续3个同样的字符 [switch] password-control alert-before-expire 1 //提前1天提示修改密码 [switch] undo password-control history en //禁止记住历史密码 [switch] password-control login-attempt 5 ex lock-time 1 //密码输入错误5次后,锁定1分钟
配置Telnet http:
[XA-NewOffice]local-user kang #创建用户kang
[XA-NewOffice-luser-manage-rkhd]password simple kang@123 #配置密码为kang@123
[XA-NewOffice-luser-manage-rkhd]service-type telnet http #服务类型为telnet、http
[XA-NewOffice-luser-manage-rkhd]authorization-attribute user-role level-15 #权限等级15
[XA-NewOffice-luser-manage-rkhd]quit #退出
[XA-NewOffice]user-interface vty 0 4 #允许5个终端远程
[XA-NewOffice-line-vty0-4]authentication-mode scheme #认证模式