Top up $1,000 or more and get 50% extra credit on every plan.
OffshoreVPSService
Security

Server hardening checklist

A practical baseline for a new Linux server.

6 min read · Updated: 2026-11-14

Update everything

apt update && apt full-upgrade -y

Create a normal user

adduser deploy
usermod -aG sudo deploy

Firewall

Allow only what you need. With ufw:

ufw default deny incoming
ufw allow 22/tcp
ufw allow 443/tcp
ufw enable

SSH

After setting up SSH keys, disable password login and root login in /etc/ssh/sshd_config:

PasswordAuthentication no
PermitRootLogin no

Reload 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-upgrades

Back 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 →