Why "hostname" is not working in "from" directive in authorized_keys file?
Issue
- Hostname is not working in "from" directive in authorized_keys file for some ssh versions. Only ip address is working for "from" directive.
- After configuring hostname in "from" directive, getting following messages in
/var/log/secure:
sshd[xxxxx]: Authentication tried for hostname with correct key but not from a permitted host (host=xx.xx.xx.xx, ip=xx1.xx.xx.xx).
sshd[xxxxx]: Connection closed by xx.xx.xx.xx port 4xxx2 [preauth]
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
