进入系统视图

system-view

配置密码

user-interface aux 0
authentication-mode password
set authentication password simple P123456#

密码复杂度配置

password-control enable
password-control aging 30
password-control length 8
password-control composition type-number 3 type-length 1
password-control complexity user-name check
password-control complexity same-character check
password-control alert-before-expire 1
undo password-control history en

登录失败锁定

password-control login-attempt 5 ex lock-time 30

查看配置信息

display current-configuration

配置超时时间

user-interface aux 0
idle-timeout 5 0
user-interface vty 0
idle-timeout 5 0

查看在线用户

display users

配置admin密码

local-user admin
password cipher P123456#

将交换机日志转发到日志审计

info-center enable
info-center source default channel loghost log level debugging
info-center loghost 127.0.0.1 facility local0

配置ssh

public-key local create rsa
public-key local create dsa
ssh server enable
user-interface vty 0 5
authentication-mode scheme
protocol inbound ssh
local-user admin
password simple P123456#
service-type ssh
authorization-attribute level 3
quit

配置交换机日期时间

clock datetime 2021/08/01

标签: 交换机, H3C交换机, 华三交换机, H3C

添加新评论