Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.