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.

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?

share|improve this question

1 Answer 1

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.

share|improve this answer

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.