roles/security: only allow ssh_host_ed25519_key

This commit is contained in:
zowoq 2023-04-25 10:21:07 +10:00
parent 7e51f772b3
commit 81dd4e0557

View file

@ -25,6 +25,12 @@
};
};
services.openssh = {
hostKeys = [
{ path = "/etc/ssh/ssh_host_ed25519_key"; type = "ed25519"; }
];
};
# Ban brute force SSH
services.fail2ban.enable = true;
}