Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using a hosts.allowed for SSH. Now, some people have dynamic IPs but they also have hosts. How could I use a like host to /etc/hosts ?

(The server is a Debian 5.0 Lenny amd64)
(Changing to SSH key auth and so on is not a way.)

share|improve this question
What exactly is "/etc/hosts based SSH auth"? – joschi Jul 7 '10 at 7:48
When you put host files who are allowed to connect to the PC. But yea I messed up. hosts.allowed .. I mean. – Shiki Jul 7 '10 at 7:56
up vote 1 down vote accepted

You can just add the DynDNS host names pointing to the clients' IP addresses to your /etc/hosts.allow file instead of literal IP addresses. See man 5 hosts_access.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.