cloud-init/do-not-generate-dsa.patch
shixuantong 055fe2cf9d do not generate dsa
(cherry picked from commit 734321d3f9b31adab9a6ea6a060efac1a881cb5e)
2024-07-20 15:51:08 +08:00

27 lines
661 B
Diff

From 5f121b085119d7eb694b5ee09f4183175cda2678 Mon Sep 17 00:00:00 2001
From: shixuantong <shixuantong1@huawei.com>
Date: Sat, 20 Jul 2024 15:04:30 +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 f096595..37571fc 100644
--- a/config/cloud.cfg.tmpl
+++ b/config/cloud.cfg.tmpl
@@ -109,6 +109,9 @@ syslog_fix_perms: ~
disable_vmware_customization: false
{% endif -%}
+# do not generate dsa
+ssh_genkeytypes: ['rsa', 'ecdsa', 'ed25519']
+
# The modules that run in the 'init' stage
cloud_init_modules:
- migrator
--
2.27.0