Merge pull request 'Disable Password authentication in SSH' (#9) from ssh-disable-password into main
Reviewed-on: pub-solar/infra-new#9
This commit is contained in:
commit
02e570c85a
|
@ -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