Disable Password authentication in SSH
This commit is contained in:
parent
41b85714a6
commit
e0c6530d97
|
@ -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