I've set up a SSH server. I know two hosts' IP address that I wanted to allow and only from those two hosts for SSHD. The server is web server so I will need to have anonymous access for Apache to serve.

How do I limit to only those two hosts? Via /etc/hosts.allow? If so, how to configure? ALL: or portmap?