security: disable root login and logging in with passwords

main
LeRoyce Pearson 2023-12-31 22:27:25 -07:00
parent 5763692afd
commit 5ff437e58c
1 changed files with 6 additions and 1 deletions

View File

@ -60,7 +60,12 @@
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
settings.PermitRootLogin = "no";
};
services.cockpit = {
enable = true;