feat(networking/ssh): add keep alive configuration

This commit is contained in:
Mohammad Rafiq 2025-05-13 16:50:06 +08:00
parent f7593078fd
commit a94d600530
No known key found for this signature in database

View file

@ -37,7 +37,11 @@ in
}; };
} }
{ {
services.openssh.enable = true; services.openssh = {
enable = true;
settings.ClientAliveInterval = 60;
settings.ClientAliveCountMax = 3;
};
networking.firewall.allowedTCPPorts = [ 22 ]; networking.firewall.allowedTCPPorts = [ 22 ];
} }
{ {