Enterprise hosting · Built for gamers
Maincubes FRA01Data center Offenbach / Frankfurt
~12 msAvg. ping DACH
1 Tbit/sDDoS protection
99.9%Uptime SLA
24+ games1-click install
Set Up Fail2ban – Protect SSH & Game Servers from Brute-Force
Quick answer: Install Fail2ban with apt install fail2ban – the SSH jail is usually active immediately on Ubuntu/Debian and bans attackers after 5 failed attempts.
If you landed here: You see thousands of failed login attempts in logs or want additional SSH protection.
Install
apt update && apt install fail2ban -y
systemctl enable --now fail2ban
fail2ban-client status sshd
Basic config
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
# bantime = 1h, maxretry = 3 under [DEFAULT]
systemctl restart fail2ban
Related
Products & ordering: Root/VPS server · Manage: panel.nexorahost.de · My account · nexorahost.com (Frankfurt · 1 Tbit/s DDoS · 99.9% uptime)
NexoraHost
Root & VPS servers
Ryzen power at Maincubes FRA01 – full root access, NVMe, DDoS protection included.
nexorahost.com · Maincubes FRA01 · 1 Tbit/s DDoS · 99,9 % Uptime