Files
alo-cluster/common/sshd.nix

14 lines
243 B
Nix

{
services.openssh = {
enable = true;
allowSFTP = true;
settings = {
PermitRootLogin = "prohibit-password"; # Allow root login with SSH keys only
};
};
networking.firewall = {
allowedTCPPorts = [ 22 ];
};
}