Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Run Fail2ban in debug mode on Ubuntu—install with
apt install fail2ban
then stop with
systemctl stop fail2ban
Start manually with
fail2ban-server -f -x -v
—expect verbose output like \"INFO jail ‘sshd’ started\" Configure /etc/fail2ban/jail local with a basic SSH jail:
[sshd]\nenabled = true\nport = 22\nfilter = sshd\nlogpath = /var/log/auth.log
Open SSH with
ufw allow 22
test with failed logins and watch logs in real-time On Linode this debugs MySQL or FTP issues—restart normally with
systemctl start fail2ban
after ensuring uptime with verified configs

Back to All Tips