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 = { services.openssh = {
enable = true; enable = true;
allowSFTP = false; allowSFTP = false;
ports = [5522]; ports = [22 5522];
settings = { settings = {
PermitRootLogin = "no"; PermitRootLogin = "no";
PasswordAuthentication = false; PasswordAuthentication = false;
KbdInteractiveAuthentication = true; KbdInteractiveAuthentication = true;
}; };
extraConfig = ''
AllowTcpForwarding no
AllowAgentForwarding no
MaxAuthTries 3
MaxSessions 4
TCPKeepAlive no
'';
}; };
environment.persistence."/nix/persist" = { environment.persistence."/nix/persist" = {
enable = true; enable = true;