iptables -A INPUT -s 所要禁止地IP -p all --dport 22 -j REJECT
service iptables save
service iptables reload
-----------------------------下面是实例:
iptables -A INPUT -s 192.168.0.12/255.255.255.0 -p all --dport 22 -j REJECT
service iptables save
service iptables reload