flake/homes/modules/server/ssh.nix
2025-02-11 15:47:56 +10:00

13 lines
271 B
Nix
Executable file

{...}: {
services.openssh = {
enable = true;
ports = [22];
settings = {
PasswordAuthentication = true;
PermitRootLogin = "no";
AllowUsers = null; # allow all users by default
UseDns = true;
X11Forwarding = false;
};
};
}