disallow ssh root login and password auth

This commit is contained in:
LavaDesu 2021-07-15 08:39:09 +07:00
parent ac5e26ecda
commit 84f9815ebb
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -1,6 +1,11 @@
{ config, pkgs, ... }: {
networking.firewall.enable = false;
services.openssh.enable = true;
services.openssh = {
enable = true;
permitRootLogin = "no";
passwordAuthentication = false;
};
security = {
polkit.enable = true;