CentOS5 和 OpenSSH 无法识别 sshd_config 中的“HashKnownHosts”和“StrictHostKeyChecking”指令

Rob*_*Rob 0 ssh configuration known-hosts centos5

我正在运行 CentOS 5 的最新版本的 OpenSSH (4.3p2)。当我尝试使用 启动服务器时/etc/init.d/sshd start,这是 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
Run Code Online (Sandbox Code Playgroud)

我的 sshd 手册页表明它支持散列的 known_hosts 文件,但我的 sshd_config 手册页没有提到这些指令中的任何一个。

HashKnownHostsStrictHostKeyChecking是否包含在 OpenSSH 的 RHEL / CentOS 维护版本中?

如果没有,我可以使用哪些解决方法?我可以安全地从源代码安装 OpenSSH 的最新稳定版本吗?我不愿意以纯文本形式留下 known_hosts。

bec*_*est 6

尝试 /etc/ssh/ssh_config 而不是 sshd 配置。这些设置似乎是针对 ssh 客户端的,而不是守护进程。