Server hardening checklist
A practical baseline for a new Linux server.
Update everything
apt update && apt full-upgrade -yCreate a normal user
adduser deploy
usermod -aG sudo deployFirewall
Allow only what you need. With ufw:
ufw default deny incoming
ufw allow 22/tcp
ufw allow 443/tcp
ufw enableSSH
After setting up SSH keys, disable password login and root login in /etc/ssh/sshd_config:
PasswordAuthentication no
PermitRootLogin noReload with systemctl reload ssh.
Brute-force protection
Install fail2ban, or move to keys-only and a VPN so SSH is not exposed at all (see WireGuard).
Automatic security updates
apt install unattended-upgradesBack up
Take a snapshot before major changes, and keep your own off-server backups.
Stuck on a step?
Dedicated and GPU customers can open a ticket. Everyone else can use server actions in the client area.
How support works →