VPS侦探论坛

 找回密码
 注册
查看: 3486|回复: 1

有没有办法设置禁止其他ip地址登陆ssh?

[复制链接]
发表于 2018-2-21 19:20:52 | 显示全部楼层 |阅读模式

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发现这个提示,有没有办法禁止这些尝试登陆的?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-2-22 09:19:45 | 显示全部楼层


使用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
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-3 02:39 , Processed in 0.025121 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表