First security steps

Five things to do in the first 10 minutes

  1. Update: apt update && apt -y full-upgrade.
  2. Automatic security updates: apt install -y unattended-upgrades.
  3. Firewall: ufw allow OpenSSH && ufw allow 80,443/tcp && ufw enable.
  4. Brute-force protection: apt install -y fail2ban.
  5. SSH keys and a non-root user: adduser deploy && usermod -aG sudo deploy.

Spam, scanning, DDoS or phishing from your server gets it blocked by the provider within a day.

Updated