Context: Modern Ubuntu server.

We have a certain host that should be known to all users on all machines. This is to avoid interactive prompt on first connect to it (which fails in non-interactive mode).

Is there a way to configure this OS-wide, without touching known-hosts of users?

link|improve this question

75% accept rate
feedback

1 Answer

up vote 4 down vote accepted

Put the key in /etc/ssh/ssh_known_hosts. You can override this file with the /etc/ssh/ssh_config with the GlobalKnownHostsFile setting.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.