Skip to content

← Week 9 - Provision and harden a VPS

Week 9 - Provision and harden a VPS: notes

Status: Not started

Exercise 1

Rent a small Ubuntu LTS VPS (for example at Hetzner) or use a VM on your own hypervisor.

Commands, results, what surprised me.

Exercise 2

Create a non-root admin user, SSH key login, disable password and root login.

Commands, results, what surprised me.

Exercise 3

Configure ufw (allow 22, 80, 443 only), fail2ban and unattended-upgrades.

Commands, results, what surprised me.

Exercise 4

Check logins with last, lastb and /var/log/auth.log.

Commands, results, what surprised me.

Deliverable

A hardening checklist you could hand to a colleague, with every command listed.

Write-up.