feat: disallow passwords for ssh

This commit is contained in:
Iain Learmonth 2025-06-10 22:45:06 +01:00
parent d3efa331f2
commit 3bb3600c6b

View file

@ -20,7 +20,12 @@
services.xserver.xkb.layout = "us";
services.openssh.enable = true;
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
settings.PermitRootLogin = "no";
};
networking.firewall.allowedTCPPorts = [ 22 ];
networking.firewall.allowedUDPPorts = [ ];