Disable Password authentication in SSH #9
|
@ -59,6 +59,7 @@
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
services.openssh.settings.PermitRootLogin = "prohibit-password";
|
services.openssh.settings.PermitRootLogin = "prohibit-password";
|
||||||
|
services.openssh.settings.PasswordAuthentication = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# NixOS specific configuration
|
# NixOS specific configuration
|
||||||
|
|
Loading…
Reference in a new issue