mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
remove strict host key checking requirement
This commit is contained in:
parent
52c1b5a400
commit
4a5f641938
2 changed files with 0 additions and 8 deletions
|
@ -15,7 +15,6 @@ let
|
|||
|
||||
in
|
||||
builtins.toFile "ssh-config" (''
|
||||
StrictHostKeyChecking yes
|
||||
GlobalKnownHostsFile ${sshKnownHostsTxt}
|
||||
'' +
|
||||
lib.concatMapStrings
|
||||
|
|
|
@ -7,12 +7,6 @@ from subprocess import run, PIPE, STDOUT
|
|||
from sys import argv
|
||||
|
||||
|
||||
def strict_host_key_checking():
|
||||
txt = run(["ssh", "-G", "localhost"], stdout=PIPE).stdout
|
||||
if "stricthostkeychecking true" not in txt.decode("utf8").splitlines():
|
||||
raise RuntimeError("This script requires StrictHostKeyChecking")
|
||||
|
||||
|
||||
def get_deployment():
|
||||
return loads(
|
||||
run(
|
||||
|
@ -183,7 +177,6 @@ def main():
|
|||
|
||||
icon_bad = "\u274c"
|
||||
icon_good = "\u2705"
|
||||
strict_host_key_checking()
|
||||
depl = get_deployment()
|
||||
tags = set(sum([depl[name]["tags"] for name in depl], []))
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in a new issue