Skip to content
Launch offer — 20% off every annual VPS plan. Instant NVMe deploy in 60 seconds. View plans
0 Deploy now

Harden a New VPS in 10 Minutes: A Practical Security Checklist

· 3 min read

Harden a New VPS in 10 Minutes: A Practical Security Checklist

A new VPS arrives as a blank, root-accessible Linux box. That flexibility is the point — but it also means security is your job. Follow this checklist in the first ten minutes and you will close the door on the overwhelming majority of automated attacks that hit every public server within hours of boot.

1. Update and reboot before you expose anything

Log in over SSH, run your distribution’s update command (apt update && apt upgrade on Ubuntu/Debian, dnf upgrade on AlmaLinux/Rocky/Fedora) and reboot if a new kernel was installed. HostDeck delivers clean, current images, but a quick update guarantees you start from the latest patched packages.

2. Create a non-root user and use SSH keys

Never log in as root day to day. Create an administrative user, add it to the sudo group, and copy your public key into ~/.ssh/authorized_keys. Then edit /etc/ssh/sshd_config to set PermitRootLogin no and PasswordAuthentication no. Key-only login defeats every password-guessing bot.

3. Turn on the firewall and allow only what you need

Use ufw or firewalld to deny inbound by default and allow only the ports your services actually use — typically 22 (SSH), 80 (HTTP) and 443 (HTTPS). If you run a control panel or database, keep those ports closed to the public internet and reach them over an SSH tunnel instead.

4. Fail2ban and rate limiting

Install fail2ban to temporarily ban IPs that repeatedly fail authentication. It is cheap insurance against brute-force attempts on SSH and web login forms. Pair it with a reverse proxy that rate-limits requests to protect application endpoints.

5. Automatic security updates

Enable unattended-upgrades (Debian/Ubuntu) or dnf-automatic (RHEL family) so critical patches install without you remembering. Combine this with HostDeck’s daily backups so you can always roll back if an update ever misbehaves.

6. TLS from day one

Issue a free certificate with Let’s Encrypt via certbot and force HTTPS. Encrypted traffic is now table stakes for user trust and for search ranking.

7. Monitor and back up

Watch CPU, memory, disk and network from the HostDeck dashboard, and set alerts for anything unusual. Keep your own off-server copy of data you cannot lose — our seven-day backups are a safety net, not a substitute for your own plan.

Start from a hardened base

Every HostDeck VPS is provisioned in about 60 seconds with DDoS protection already enabled at the network edge, so you begin behind a shield and can layer these host-level steps on top in minutes.