24 lines
533 B
Nix
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)
|
|
}
|