From 37f95b3d795bbd8b34513608aa50c41309b73aea Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 4 Apr 2021 11:29:31 +0200 Subject: [PATCH] ssh: Add global known hosts Fixes #47. --- modules/ssh.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/modules/ssh.nix b/modules/ssh.nix index a19c5d2..f1b884b 100644 --- a/modules/ssh.nix +++ b/modules/ssh.nix @@ -7,4 +7,33 @@ }; users.users.root.openssh.authorizedKeys.keys = config.sbruder.pubkeys.trustedKeys; + + programs.ssh.knownHosts = { + "[git.sbruder.de]:2022".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINV/2NbmkWuOs/RyULTex1MkLaKrrDJFj8piX2CR+ms/"; + + nunotaba = { + hostNames = [ "nunotaba" "nunotaba.home.sbruder.de" "nunotaba.vpn.sbruder.de" ]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFvJzN9+aRGjd4hPAOe6ZlDr8V3CXX9stRNSAAv9uC8j"; + }; + sayuri = { + hostNames = [ "sayuri" "sayuri.home.sbruder.de" "sayuri.vpn.sbruder.de" ]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIg/622wS8SFlzS29TPW9li3pNdbdHNjlGb4XTyXR0QR"; + }; + vueko = { + hostNames = [ "vueko.sbruder.de" "vueko.vpn.sbruder.de" ]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJn2mxanLYNHWh1FSAL+GzB2S7u/nxDrkCBWSLdp92Vu"; + }; + vueko-initrd = { + hostNames = [ "[vueko.sbruder.de]:2222" ]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINjSqpT1/aMiKMOj38pY7gTOC+Cc0Ymi7UvMy0BssCzC"; + }; + fuuko = { + hostNames = [ "fuuko" "fuuko.home.sbruder.de" "fuuko.sbruder.de" "fuuko.vpn.sbruder.de" ]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMIrUqI2CZh2ipzDNVCTNdBen8IdhbddgwQzEMWoQzNB"; + }; + fuuko-initrd = { + hostNames = [ "[fuuko.home.sbruder.de]:2222" ]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJxqaJgDOZ8FdY68o/r1YNlGvNatFtP86QoqV147g3Lb"; + }; + }; }