1
0

pkgs/clerie-ssh-known-hosts: Pin SSH host keys to FQDN only

This commit is contained in:
2025-11-16 14:09:24 +01:00
parent 0de7471ac0
commit 2d9836f793

View File

@@ -10,7 +10,6 @@ let
sshPubkey = stripR (builtins.readFile (../../hosts + "/${hostname}/ssh.pub"));
}) hostsWithSshPubkey;
knownHosts = builtins.concatStringsSep "" (builtins.map ({name, sshPubkey}: ''
${name} ${sshPubkey}
${name}.net.clerie.de ${sshPubkey}
'') sshkeyList);
in writeTextFile {