最安全的方法是使用您期望的值来预配置已知主机-为要连接的服务器添加适当的行。
# Run this manually:ssh -o UserKnownHostsFile=foo javadoc.foo.com# Take that file and put it in your private DAV share, and thenssh -o UserKnownHostsFile=/private/<account>/known_hosts javadoc.foo.com

最安全的方法是使用您期望的值来预配置已知主机-为要连接的服务器添加适当的行。
# Run this manually:ssh -o UserKnownHostsFile=foo javadoc.foo.com# Take that file and put it in your private DAV share, and thenssh -o UserKnownHostsFile=/private/<account>/known_hosts javadoc.foo.com