Skip to content

Linux Server Hardening

Install security updates and patches⚓︎

Keeping your server updated is the first line of defense.

Distros Applicable : Debian/Ubuntu

Install latest Updates

sudo apt update && sudo apt upgrade -y

Enable automatic security updates:

sudo apt install unattended-upgrades
sudo dpkg-reconfigure --priority=low unattended-upgrades
Remove unnecessary packages:

sudo apt autoremove -y

Distros Applicable : RHEL/CentOS/OCL

Install latest Updates

sudo yum update -y # Fedora
sudo dnf update -y

Remove unnecessary packages:

sudo yum autoremove -y

Strong Passwords⚓︎

Use a strong password consists of a variety of characters (alphanumeric, numbers, special characters).

Password Generator