en
conf t
hostname GY-HG-YJSZX-GL-MP3900 //修改主机名
password-control complexity min-length 10 //密码长度10
password-control complexity composition type-number 4 //密码种类4
enable password Gyhaiguan@123H //修改enable密码
local-user gyhaiguan class manager //修改登录账户
service-type console ssh telnet
privilege 15
password 0 Gyhaiguan@123H //修改密码
exit
ip ssh server //开启SSH服务
telnet server disable //禁用telnet服务
line vty 0 4
exec-timeout 10 0 // 超时时间为10分钟
privilege level 15 //权限为15
login aaa default //默认aaa认证
exit
domain system
aaa authentication login local
exit
end
write //保存配置