nix-config/features/shared/ssh.nix

12 lines
204 B
Nix

{ config, ... }:
{
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
};
};
}