ecdsa-sha2-nistp256 host key

This commit is contained in:
nora 2024-08-27 22:49:26 +02:00
parent dd029f03bd
commit 0f9295ee45

View file

@ -218,6 +218,22 @@ in
services.openssh = {
enable = true;
hostKeys = [
{
bits = 4096;
path = "/etc/ssh/ssh_host_rsa_key";
type = "rsa";
}
{
# P256
path = "/etc/ssh/ssh_host_ecdsa_key";
type = "ecdsa";
}
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
settings.PermitRootLogin = "no";
settings.PasswordAuthentication = false;
};