1
0
Fork 0
forked from pub-solar/infra

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:
b12f 2023-10-28 12:04:56 +02:00
commit 02e570c85a
Signed by: pub.solar gitea
GPG key ID: F0332B04B7054873

View file

@ -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