<host>/ssh.pub

This commit is contained in:
Mikaël Cluseau
2026-05-30 09:36:35 +02:00
parent 1a4d908bef
commit 6d26fd9fa6
2 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ func buildInitrd(out io.Writer, ctx *renderContext) (err error) {
cat.AppendDir("/etc/ssh", 0o700)
// XXX do we want bootstrap-stage keys instead of the real host key?
for _, format := range []string{"rsa", "ecdsa", "ed25519"} {
for _, format := range sshKeyTypes {
keyPath := "/etc/ssh/ssh_host_" + format + "_key"
cat.AppendBytes(cfg.FileContent(keyPath), keyPath, 0o600)
}