Below you will find pages that utilize the taxonomy term “Ubuntu”
Securing Your Ubuntu 22.04 Server
A compact checklist for hardening a fresh Ubuntu 22.04 server. These steps cover the essentials — from SSH lockdown to automatic updates.
SSH
Disable password authentication — use key-based auth only:
PasswordAuthentication noDisable root login:
PermitRootLogin noRestrict to IPv4 if you don’t need IPv6:
AddressFamily inetDisable X11 forwarding:
X11Forwarding noReload after changes:
sudo systemctl reload sshd
Firewall (UFW)
Enable UFW and allow only what you need:
Auditing Your Linux Server with Lynis
You’ve hardened your server — SSH keys, firewall, fail2ban, automatic updates. But how do you know what you missed? Lynis is an open-source security auditing tool that scans your system and tells you exactly where to improve.
What Lynis Does
Lynis performs hundreds of individual tests across your system: kernel settings, authentication, file permissions, network configuration, running services, and more. It produces a hardening index (0–100) and a list of concrete suggestions with references to specific controls.