0
点赞
收藏
分享

微信扫一扫

封掉暴力破解的ip

phpworkerman 2022-02-09 阅读 63

连续3次以上通过ssh登录系统失败的IP

lastb -i -a | grep ssh  | awk '{print $NF}' | uniq  -c | awk '$1>3{print $2}'

将地址加入/etc/hosts.deny文件中

sshd:147.182.236.157

举报

相关推荐

0 条评论