fix: harden sshd

This commit is contained in:
Ahwx 2024-10-13 20:02:48 +02:00
parent fedeb86522
commit 7f5ef58981

View file

@ -4,9 +4,9 @@
enable = true; enable = true;
ports = [22]; ports = [22];
settings = { settings = {
PasswordAuthentication = true; PasswordAuthentication = false;
AllowUsers = null; AllowUsers = null;
PermitRootLogin = "yes"; PermitRootLogin = "no";
LoginGraceTime = 0; LoginGraceTime = 0;
}; };
}; };