security: disable root login and logging in with passwords
parent
5763692afd
commit
5ff437e58c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue