»
(008) CubeIDE Implementation of USB Peripherals*
(018) C99 pointer*
(019) C99 With only value assignment*
(022) POSIX pthread multi-threads mutex*
(023) POSIX pthread multi-threads programming*
(027) C99 time and wait*
(028) High-precision calculation with GMP*
(029) Web Service Lib*
(030) International Components for Unicode (ICU)*
(031) Performance of C is higher than C++, because...*
🍓(017) sshd密码输入错误禁用IP3分钟
sshd密码输入错误禁用IP3分钟 (来自ChatGPT与DeepSeek) 1)安装fail2ban sudo apt update && sudo apt install fail2ban -y 2)配置fail2ban sudo nano /etc/fail2ban/jail.local 内容为: [DEFAULT] bantime = 180 findtime = 180 maxretry = 3 backend = systemd banaction = ufw [sshd] enabled = true port = ssh filter = sshd logpath = /var/log/auth.log maxretry = 3 3)重启fail2ban服务 systemctl restart fail2ban 4)使用fail2ban-client验证fail2ban的配置文件格式: fail2ban-client -d 5)使用fail2ban-client查看fail2ban的配置是否生效: fail2ban-client status sshd