cloud-init/do-not-generate-dsa.patch
2023-11-07 17:10:54 +08:00

27 lines
628 B
Diff

From 314952210a5900aced4f2578a5f663eb21a16e77 Mon Sep 17 00:00:00 2001
From: shixuantong <shixuantong1@huawei.com>
Date: Mon, 6 Nov 2023 16:42:16 +0800
Subject: [PATCH] do not generate dsa
---
config/cloud.cfg.tmpl | 3 +++
1 file changed, 3 insertions(+)
diff --git a/config/cloud.cfg.tmpl b/config/cloud.cfg.tmpl
index 4df91f1..5f0fe00 100644
--- a/config/cloud.cfg.tmpl
+++ b/config/cloud.cfg.tmpl
@@ -66,6 +66,9 @@ network:
config: disabled
{% endif %}
+# do not generate dsa
+ssh_genkeytypes: ['rsa', 'ecdsa', 'ed25519']
+
# The modules that run in the 'init' stage
cloud_init_modules:
- migrator
--
2.33.0