summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/default.nix
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-10-09 12:06:00 +0200
committertv <tv@shackspace.de>2015-10-09 12:06:00 +0200
commit9ae6d1611ef8cd8479235ac91272e694080b9d89 (patch)
tree4fe7cf2868f57a0a03f88c72a5d830051fd4c1e4 /krebs/3modules/default.nix
parent059037f5ec15754563ab1627d3056f128c986f38 (diff)
add github.com and its addrs4 to known_hosts
Diffstat (limited to 'krebs/3modules/default.nix')
-rw-r--r--krebs/3modules/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/krebs/3modules/default.nix b/krebs/3modules/default.nix
index 430194405..eeb3acdcb 100644
--- a/krebs/3modules/default.nix
+++ b/krebs/3modules/default.nix
@@ -137,6 +137,13 @@ let
mkIf (privkey != null) (mkForce [privkey]);
services.openssh.knownHosts =
+ {
+ github = {
+ hostNames = ["github.com"] ++
+ map (i: "192.30.252.${toString i}") (range 0 255);
+ publicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==";
+ };
+ } //
mapAttrs
(name: host: {
hostNames =