Server security
Harden SSH, firewalls, secrets and containers, then audit what you run.
- 10 lessons
- 3h 35m estimated time
- 5 hands-on labs
- 1 animated diagram
- 10 quizzes
1 beginner, 9 intermediate. Start at the top or pick a chapter below.
0 of 10 done
Saved in this browser as you finish lessons.
More
Further lessons in this track.
01 Up next Harden SSH server configuration (sshd drop-in file) Hardening SSH means restricting sshd to key-based logins for named users and no root login, set in a drop-in file and validated with sshd -t before you reload. 20 min Intermediate Lab Diagram 02 Up next Tune fail2ban jails and bans (bantime, findtime, recidive) Tuning fail2ban means setting ban rules in jail.local or jail.d files, so repeat offenders are blocked for longer while your own addresses are never banned. 20 min Intermediate Lab 03 Up next Advanced ufw firewall rules (limit, allow from IP, delete, insert) Advanced ufw rules restrict ports to specific source addresses, rate limit SSH, and rely on rule order, so you control exactly who reaches each service. 20 min Intermediate Lab 04 Up next Unattended security updates and reboots on Ubuntu Unattended-upgrades installs security updates automatically on a schedule and can reboot the server at a set time when a kernel or core library needs it. 15 min Beginner 05 Up next Manage secrets on servers and containers (env files, Compose secrets) Managing secrets means storing passwords and keys in protected files outside git, passing them to containers in the least exposed way, and rotating them after any leak. 20 min Intermediate 06 Up next Run containers as non-root (USER, cap_drop, read_only) Running a container as non-root means its main process uses an unprivileged user, drops extra Linux capabilities and cannot write to its own filesystem, which limits damage from a compromise. 20 min Intermediate 07 Up next Scan Docker images with Trivy (severity, exit code, ignore) Trivy is a scanner that compares the packages in an image, folder or config against vulnerability databases and reports known issues by severity so you can fix or block them. 20 min Intermediate Lab 08 Up next TLS and HTTP security headers checklist for nginx and Caddy A TLS and security header checklist sets modern protocol versions and response headers that tell browsers to use HTTPS, avoid sniffing content types and limit framing and scripts. 25 min Intermediate 09 Up next Audit a Linux server (ports, users, sudo, cron, logins, lynis) A server audit is a read-only review of what listens on the network, who can log in and use sudo, what runs on a schedule and who tried to get in, so you spot anything unexpected. 30 min Intermediate Lab 10 Up next Backups against ransomware (pull-based, offsite, append-only) A ransomware-resistant backup is a copy the compromised server cannot reach, change or delete, kept with separate credentials and proven by a test restore. 25 min Intermediate