Intermediate Free course, 2 parts
Server security
Harden SSH, the firewall, secrets and containers, and learn to audit what is running.
For anyone who just put a server on the internet.
- 10 lessons
- 3h 35m total time
- 5 hands-on labs
- 1 diagram
- 10 quizzes
Course complete
You finished Server security
All 10 lessons done on . Share it, print the certificate, or start the next course below.
Levelrail Learn Certificate of completion Completed Server security on Levelrail Learn 10 lessons, 3h 35m of guided practice levelrail.com/learn/courses/server-security/
What you will be able to do
- Lock down SSH and the firewall
- Keep secrets out of code and logs
- Harden containers and images
- Audit and patch on a routine
Syllabus
10 lessons in 2 parts, 3h 35m in total
Part 1
Lessons 1 to 5
5 lessons, 1h 35m 0/5- Harden SSH server configuration (sshd drop-in file) Up next Done 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 Quiz
- Tune fail2ban jails and bans (bantime, findtime, recidive) Up next Done 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 Quiz
- Advanced ufw firewall rules (limit, allow from IP, delete, insert) Up next Done 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 Quiz
- Unattended security updates and reboots on Ubuntu Up next Done 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 Quiz
- Manage secrets on servers and containers (env files, Compose secrets) Up next Done 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 Quiz
Part 2
Lessons 6 to 10
5 lessons, 2h 0/5- Run containers as non-root (USER, cap_drop, read_only) Up next Done 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 Quiz
- Scan Docker images with Trivy (severity, exit code, ignore) Up next Done 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 Quiz
- TLS and HTTP security headers checklist for nginx and Caddy Up next Done 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 Quiz
- Audit a Linux server (ports, users, sudo, cron, logins, lynis) Up next Done 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 Quiz
- Backups against ransomware (pull-based, offsite, append-only) Up next Done 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 Quiz