Disable Password authentication in SSH

This commit is contained in:
Akshay Mankar 2023-10-28 12:01:48 +02:00
parent 41b85714a6
commit e0c6530d97
Signed by: axeman
GPG key ID: CA08F3AB62369B89

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