上下文:现代Ubuntu服务器。
我们有一台应该被所有机器上的所有用户知道的特定主机。 这是为了避免首次连接到交互式提示(在非交互模式下失败)。
有没有一种方法来configuration这个操作系统范围,而不接触known-hosts的用户known-hosts ?
known-hosts
把密钥放在/etc/ssh/ssh_known_hosts 。 您可以使用GlobalKnownHostsFile设置的/etc/ssh/ssh_config覆盖此文件。
/etc/ssh/ssh_known_hosts
GlobalKnownHostsFile
/etc/ssh/ssh_config