ssh爆破攻击
ssh爆破防范
fail2ban安装
1 | apt update |
配置fail2ban
1 | vim /etc/fail2ban/jail.conf |
修改配置项
1 | bantime = 8760h # 1 year |
重启fail2ban
1 | systemctl restart fail2ban.service |
查看sshd状态
1 | fail2ban-client status sshd |
- Title: ssh爆破攻击
- Author: koopkl
- Created at : 2024-04-10 13:33:36
- Updated at : 2024-04-10 13:48:53
- Link: https://lime.popla.cc/2024/04/10/ssh爆破保护/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments