tcp_wrapper
配置文件:
/etc/hosts.allow
/etc/hosts.deny
需求:拒绝所有人ssh登陆我,只允许某一个人(10.18.44.126)登陆
#vim /etc/hosts.deny
sshd:10.18.44.0/255.255.255.0#vim /etc/hosts.allow
sshd:10.18.44.126
tcp_wrapper
配置文件:
/etc/hosts.allow
/etc/hosts.deny
需求:拒绝所有人ssh登陆我,只允许某一个人(10.18.44.126)登陆
#vim /etc/hosts.deny
sshd:10.18.44.0/255.255.255.0#vim /etc/hosts.allow
sshd:10.18.44.126