摘要: 1. 在 /etc/hosts.allow 写:在/etc/hosts.allow写:sshd: 1.2.3.4在 /etc/hosts.deny 写:sshd: ALL2. 用 iptables 也行:iptables -I INPUT -p tcp --dport 22 -j DROPiptables -I INPUT -p tcp --dport 22 -s 1.2.3.4 -j ACCEPT3. 禁止某个用户通过ssh登录在/etc/ssh/sshd_conf添加AllowUsers 用户名或者AllowGroups 组名或者DenyUsers 用户名4. 设定登录黑名单vi /etc 阅读全文
posted @ 2012-06-12 18:14 残夜 阅读(601) 评论(0) 推荐(0) 编辑