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 am running the latest build of OpenSSH (4.3p2) from CentOS 5. When I attempt to start the server with /etc/init.d/sshd start, this is the output from bash:

Starting sshd: 
   /etc/ssh/sshd_config: line 130: Bad configuration option: HashKnownHosts
   /etc/ssh/sshd_config: line 134: Bad configuration option: StrictHostKeyChecking
   /etc/ssh/sshd_config: terminating, 2 bad configuration options

My man page for sshd indicates that it supports a hashed known_hosts file, but the man page I have for sshd_config does not mention either of these directives.

Are HashKnownHosts and StrictHostKeyChecking included in the RHEL / CentOS maintained version of OpenSSH?

If not, what work-arounds are available to me? Can I safely install the newest stable version of OpenSSH from source? I'm unwilling to leave known_hosts in plain-text.

share|improve this question
up vote 6 down vote accepted

Try /etc/ssh/ssh_config instead of sshd config. These settings seem to be for the ssh client, not the daemon.

share|improve this answer
Thanks, that was it! I was simply glancing over the missing 'd' when I searched the documentation. :p – robjb Jan 18 '11 at 20:39

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.