Free Ubuntu Server Hardening Checklist

Free PDF checklist

59 steps to lock down a fresh Ubuntu server.

A fresh Ubuntu server is not a hardened server. Put one on the internet and within hours something is knocking on your SSH port. This checklist is what to do before that happens.

  • The exact command for every step
  • An order that does not lock you out
  • Tested on a clean Ubuntu Server 26.04 LTS install
  • One to two hours, start to finish

Get the checklist

Enter your email address. The download link arrives in the welcome email.

One email when a new Vigilnix guide goes out. Unsubscribe in one click.

What is in it

Six sections, in the order you run them

Nine pages, with a box to tick next to each step.

01

Users and sudo

Your own account, root locked, and a clear answer to who can use sudo and why.

02

SSH

Key login, no root, no passwords, and a way to test it without locking yourself out.

03

Firewall

UFW, the ports to open, and your hosting provider’s own firewall.

04

Updates

Automatic security updates, and how to check they are really on.

05

Fail2ban

Ban the addresses that keep guessing, on the port SSH really uses.

06

Auditing and logs

Lynis, running services, AppArmor, logins, and a backup you have tested.

Version 1.0

Tested, not just written

Every command was run in order on a clean Ubuntu Server 26.04 LTS install. Testing found two problems that most guides miss. Both are now covered in the checklist.

A ban that blocks the wrong port

When SSH does not use port 22, Fail2ban lists the address as banned and still lets it in. The checklist gives the one line that fixes it.

SSH settings that are never read

If one line is missing from the main SSH file, your hardening settings are ignored without any error. The checklist tells you what to look for.

Servers already in production?

A checklist tells you what to look at. An audit tells you what is actually wrong on your machine.

Request an audit →