Open source

Linux Server Hardening Script

DevOps Tool

Secures a fresh Linux server in one run: users, SSH lockdown, firewall, Fail2Ban and kernel settings. In use on 3 production servers.

Role
Author
Status
Active

Born from the need to consistently secure new Linux server deployments. This script automates the essential hardening steps that are typically done manually — reducing setup time and ensuring no security step gets skipped.

  • Creates non-root users and disables root SSH access with enforced key-based authentication.
  • Configures firewall rules and disables unnecessary protocols.
  • Sets up Fail2Ban to block brute-force login attempts.
  • Implements shared memory protection and hardens kernel parameters against common network exploits.
  • In use on 3 production servers running SaaS and e-learning platforms.

Want something similar built? Get in touch →