dotfiles/homes/modules/server/ssh.nix

14 lines
271 B
Nix
Raw Normal View History

2025-02-11 18:17:17 +10:00
{...}: {
services.openssh = {
enable = true;
ports = [22];
settings = {
PasswordAuthentication = true;
PermitRootLogin = "no";
AllowUsers = null; # allow all users by default
UseDns = true;
X11Forwarding = false;
};
};
}