sec: harden ssh config

This commit is contained in:
2025-09-04 20:21:18 +05:00
parent 3a66870244
commit c923c80cbf

View File

@@ -4,6 +4,14 @@ in {
services.openssh = {
enable = true;
ports = [ sshPort ];
settings = {
PermitRootLogin = "no";
KbdInteractiveAuthentication = false;
PasswordAuthentication = false;
};
openFirewall = true;
};
networking.firewall.allowedTCPPorts = [ sshPort ];