I am using OpenSSH 6.7p1 on Debian 8 (Jessie).
I am using public key authentication. As part of that, I am using the "from" authorization option in my authorized_keys file.
I am finding that when I specify the allowed source host by IP address, access restrictions work as expected. But when I specify the allowed source host by hostname, access is not granted. It skips public key authentication and asks for the password.
The working entry in authorized_keys looks like this:
from="10.1.1.1" ssh-rsa ...
The non-working entry in authorized_keys looks like this:
from="snoopy" ssh-rsa ...
Hostname "snoopy" is resolved by the /etc/hosts file. I do not have a DNS client running on either of the machines involved. The following entry appears in /etc/hosts on both of the machines invovled: 10.1.1.1 snoopy
Is there any way I can make this work, or is it a limitation / problem with my OpenSSH version?