限制ssh連線範圍

十一月 8, 2011 Linux(CentOS)相關

vi /etc/hosts.allow
sshd:192.168.1. , 127.0.0. , 114.41. , 114.46. :allow

vi /etc/hosts.deny
sshd:all :deny

/etc/init.d/sshd restart

Tags: , ,

Leave a Reply