nix-flake/base/ssh.nix
2025-01-28 20:32:10 +08:00

11 lines
206 B
Nix

{
networking.firewall.allowedTCPPorts = [ 22 ];
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
}