From d0dbf94fb85a513e2ed5e833db6a8e433cf37091 Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Tue, 4 Feb 2025 19:51:19 +0000 Subject: [PATCH] add hosts' SSH keys to known_hosts --- peering.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/peering.nix b/peering.nix index b25f215..c2cee0f 100644 --- a/peering.nix +++ b/peering.nix @@ -132,5 +132,10 @@ in ++ optionals host.isRouter [ "10.127.0.0/16" "fd70:81ca:0f8f::/48" ]; }; }; + + services.openssh.knownHosts = builtins.map hosts (name: host: { + publicKey = host.hostKey; + hostNames = [ host.ipv4 host.ipv6 ]; + }); }; }