Hello,
time for me to post a question.
I am configuring the /etc/hosts.allow and /etc/hosts.deny on a remote server to cut down on ssh login attempts from the skiddies. I ran into some difficulties adding a domain name to the /etc/hosts.allow file.
Quote:
/etc/hosts.allow
sshd : ipaddress1 ipaddress2 myname.dyndns.org
|
Quote:
/etc/hosts.deny
sshd : ALL
|
I was not able to login from my location to the remote server using the dyndns.org domain name account, but when I use my current IP address (dynamic), it works.
Does anybody have some insight to this?
What I have done for now, is to select a large enough subnet (with corresponding netmask) from the IP's that my ISP hands out to me, hoping that I can maintain access via ssh, even in the event that my IP should change (provided it stays within the range of the first two octets).
I may have to enlarge the IP subnet a bit more, and I do have alternate means to access the server and change configurations.