Files
dotfiles/modules/services/openssh/nixos.nix
2026-07-27 16:49:48 +09:00

13 lines
248 B
Nix

{
services.openssh = {
enable = true;
openFirewall = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PubkeyAuthentication = "yes";
};
};
}