reconfig ssh a bit?

This commit is contained in:
andromeda
2026-01-01 07:55:05 +01:00
parent 8ad0603114
commit e8abf3ab16

View File

@@ -60,19 +60,12 @@
services.openssh = {
enable = true;
allowSFTP = false;
ports = [5522];
ports = [22 5522];
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
KbdInteractiveAuthentication = true;
};
extraConfig = ''
AllowTcpForwarding no
AllowAgentForwarding no
MaxAuthTries 3
MaxSessions 4
TCPKeepAlive no
'';
};
environment.persistence."/nix/persist" = {
enable = true;