Harden a Linux server
Harden a Linux server with SSH key-only auth, firewall rules, disabled services, automatic updates, and fail2ban. Includes CIS benchmark checks.
Preview
Copy prompt
Provide a comprehensive server hardening guide and automation scripts for a fresh [Linux Distro] server running [Workload]. Cover: disabling password authentication and enforcing SSH key-only login, configuring ufw or iptables with a minimal allow-list firewall policy, disabling and removing unnecessary services and packages, enabling unattended security updates, configuring fail2ban for SSH brute-force protection, and a set of CIS Benchmark checks to run post-hardening to verify compliance.
More
DevOps
Prompts
