Board logo

标题: 有没有办法设置禁止其他ip地址登陆ssh? [打印本页]

作者: cqboy2003    时间: 2018-2-21 19:20     标题: 有没有办法设置禁止其他ip地址登陆ssh?

Last failed login: Wed Feb 21 17:59:00 CST 2018 from 182.100.67.60 on ssh:notty
There were 9978 failed login attempts since the last successful login.
Last login: Tue Feb 20 21:06:46 2018 from 222.181.198.179

今天登陆ssh发现这个提示,有没有办法禁止这些尝试登陆的?
作者: licess    时间: 2018-2-22 09:19

使用iptables https://www.vpser.net/security/linux-iptables.html 或者 修改 /etc/hosts.allow和/etc/hosts.deny deny中添加 sshd:all:deny allow中添加允许的 sshd:123.45.6.7:allow




欢迎光临 VPS侦探论坛 (http://bbs.vpser.net/) Powered by Discuz! 6.0.0