feature(ssh): add more security to the ssh config

This commit is contained in:
2026-02-21 18:04:47 +01:00
parent 159cd6f2f2
commit aea7ba5c97

View File

@@ -5,5 +5,15 @@
services.openssh = {
enable = true;
openFirewall = true;
ports = [ 666 ];
settings = {
AuthenticationMethods = "publickey";
KbdInteractiveAuthentication = false;
MaxAuthTries = 5;
PasswordAuthentication = false;
PermitRootLogin = "no";
X11Forwarding = false;
};
};
}