Disable password login via SSH in apex

Reviewed-by: Aleix Boné <abonerib@bsc.es>
This commit is contained in:
2025-11-20 15:21:14 +01:00
parent aa16bfc0bc
commit f921f0a4bd

View File

@@ -59,6 +59,9 @@
services.fail2ban.enable = true; services.fail2ban.enable = true;
# Disable SSH login with password, allow only keypair
services.openssh.settings.PasswordAuthentication = false;
networking.firewall = { networking.firewall = {
extraCommands = '' extraCommands = ''
# Blackhole BSC vulnerability scanner (OpenVAS) as it is spamming our # Blackhole BSC vulnerability scanner (OpenVAS) as it is spamming our