services.openssh.settings.PermitRootLogin
NixOS option
Whether the root user can login using ssh.
type: null or one of "yes", "without-password", "prohibit-password", "forced-commands-only", "no"Default
declared in: nixos/modules/services/networking/ssh/sshd.nixView source on NixOS/nixpkgs →"prohibit-password"