initrd ssh: back to std key paths
This commit is contained in:
@ -71,7 +71,8 @@ func buildInitrd(out io.Writer, ctx *renderContext) (err error) {
|
||||
// ssh keys
|
||||
// XXX do we want a bootstrap-stage key instead of the real host key?
|
||||
for _, format := range []string{"rsa", "dsa", "ecdsa", "ed25519"} {
|
||||
cat.AppendBytes(cfg.FileContent("/etc/ssh/ssh_host_"+format+"_key"), "id_"+format, 0600)
|
||||
keyPath := "/etc/ssh/ssh_host_" + format + "_key"
|
||||
cat.AppendBytes(cfg.FileContent(keyPath), keyPath, 0600)
|
||||
}
|
||||
|
||||
// ssh user CA
|
||||
|
Reference in New Issue
Block a user