Some useful notes to secure a public available server.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

355 B

Use Fail2ban


apt install fail2ban


Add the following to /etc/fail2ban/jail.d/defaults-debian.local:

# in seconds
bantime = 3600
maxretry = 3
backend  = auto

enabled = true
filter  = sshd
backend = systemd

Apply Changes

Run service fail2ban restart to activate the changes.