From 547a75c25de3fc2dfd5656ae0fb0f40b31c8a1e0 Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Mon, 27 Mar 2023 21:19:09 +0200 Subject: [PATCH] fix issue where sshkeyscan fails when ipv6 is disabled for sshd --- management/dns_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/dns_update.py b/management/dns_update.py index 90ce0fe0..3fc169af 100755 --- a/management/dns_update.py +++ b/management/dns_update.py @@ -493,7 +493,7 @@ def build_sshfp_records(): pass break - keys = shell("check_output", ["ssh-keyscan", "-t", "rsa,dsa,ecdsa,ed25519", "-p", str(port), "localhost"]) + keys = shell("check_output", ["ssh-keyscan", "-4", "-t", "rsa,dsa,ecdsa,ed25519", "-p", str(port), "localhost"]) keys = sorted(keys.split("\n")) for key in keys: