2

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?

Alexander Gladysh
  • 2,423
  • 8
  • 31
  • 49

1 Answers1

5

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

Cakemox
  • 25,209
  • 6
  • 44
  • 67