Merge pull request 'feature(ssh): add more security to the ssh config' (#22) from feature/openssh into main

Reviewed-on: #22
This commit was merged in pull request #22.
This commit is contained in:
2026-02-21 18:09:31 +01:00

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;
};
};
}