Linux Hardening Project
A documentation guide covering baseline security practices for Linux servers, from SSH key authentication to firewall configuration and service auditing.
Fig 1. Linux hardening overview
Default operating system installations often prioritize ease of use over security. Securing remote administration through SSH is the foundational first step in server hardening.
The guide details auditing the sshd_config file to
disable direct root logins, enforce cryptographic key-based
authentication, and disable password authentication to prevent
brute-force attacks.
Figs 2–4. Disabling root SSH access & password authentication
Minimizing the attack surface is a primary security objective. Unused packages and active listening daemons introduce unnecessary exposure. The documentation outlines identifying and removing default services and non-essential software.
Figs 5–7. Auditing and removing unused packages
For network perimeter control, the guide documents configuring UFW (Uncomplicated Firewall). The firewall enforces a default-deny inbound policy, permitting only explicit required ports (such as SSH, HTTP, and HTTPS) and dropping unsolicited traffic.
Figs 8–11. Configuring a default-deny firewall posture
System integrity also requires internal permission controls. The
documentation explains auditing file permissions, restricting
access to sensitive configuration files, and verifying root
ownership on system binaries with chmod and
chown.
Figs 12–13. Auditing & modifying critical file permissions
Reliable logging depends on synchronized system clocks. Accurate timestamps are required for correlating log entries across services and conducting security audits.
The final section covers configuring Network Time Protocol (NTP) through systemd-timesyncd to maintain synchronization with network time servers.
Figs 14–15. Establishing reliable time synchronization