fix: correct host key header

This commit is contained in:
miampf 2025-04-16 14:26:54 +02:00
parent 2371124115
commit 77e3f90155
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C

View File

@ -92,7 +92,7 @@ func GenerateSignedSSHHostKey(principal string, ca ssh.Signer) (*pem.Block, *ssh
if err != nil {
return nil, nil, err
}
pemHostKey := &pem.Block{Type: "OPENSSH PRIVATE KEY", Bytes: hostKeySSH}
pemHostKey := &pem.Block{Type: "PRIVATE KEY", Bytes: hostKeySSH}
certificate := ssh.Certificate{
CertType: ssh.HostCert,