Files
tuxcord.nix/nixos/openssh.nix
T
2026-05-04 02:00:44 +02:00

24 lines
533 B
Nix

{
services.openssh = {
enable = true;
settings = {
ClientAliveInterval = 300;
KbdInteractiveAuthentication = false;
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
<<<<<<< HEAD
networking.firewall.allowedTCPPorts = [ 22 ];
||||||| parent of 1c2f11d (lib/ssh: add more ssh keys)
users.users.root.openssh.authorizedKeys.keys = builtins.attrValues {
inherit (import "${self}/lib/ssh/keys.nix") error javalsai;
};
=======
>>>>>>> 1c2f11d (lib/ssh: add more ssh keys)
}