openssh: updated from deprecated settings

progresses #21
This commit is contained in:
Serĉanto de Scio 2023-06-05 09:41:59 +10:00
parent c565d74a54
commit 70f9e6f1bd
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -7,15 +7,17 @@
}: { }: {
services.openssh = { services.openssh = {
enable = true; # Enable the OpenSSH daemon. enable = true; # Enable the OpenSSH daemon.
permitRootLogin = "prohibit-password";
kbdInteractiveAuthentication = false;
passwordAuthentication = false;
openFirewall = true;
hostKeys = [ hostKeys = [
{ {
path = "/etc/ssh/ssh_host_ed25519_key"; path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519"; type = "ed25519";
} }
]; ];
openFirewall = true;
settings = {
KbdInteractiveAuthentication = false;
PasswordAuthentication = false;
PermitRootLogin = "prohibit-password";
};
}; };
} }