> If i add a few IP addresses to hosts.allow like this:
> sshd: 82.118.106.158
> and then add to hosts.deny:
> sshd: ALL
> Will the ips in that I specified in hosts.allow still be able to ssh the
> server? I want to check before I lock myself out of a remote server.
Yes, this will be fine. This is taken from the hosts.deny man page...
The access control software consults two files. The search stops at
the first match:
- Access will be granted when a (daemon,client) pair matches an entry
in the /etc/hosts.allow file.
- Otherwise, access will be denied when a (daemon,client) pair matches
an entry in the /etc/hosts.deny file.
- Otherwise, access will be granted.
Dan