disable password authentication in ssh

This commit is contained in:
Charlotte 🦝 Delenk 2024-10-31 09:27:40 +01:00
parent a6a023ffe3
commit b2dde62033

View file

@ -2,7 +2,7 @@
services.openssh.enable = true;
services.openssh.settings = {
PermitRootLogin = true;
PasswordAuthentication = false;
PasswordAuthentication = "no";
};
networking.firewall.allowedTCPPorts = [22];
}