Files
tuxcord.nix/nixos/openssh.nix
T

16 lines
271 B
Nix

{
services.openssh = {
enable = true;
settings = {
ClientAliveInterval = 300;
KbdInteractiveAuthentication = false;
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
networking.firewall.allowedTCPPorts = [ 22 ];
}