a simple hardening tool for securing linux servers.
Overview
hardn secures a Linux server you own: Debian, Ubuntu, Alpine or Proxmox VE. Run sudo hardn and it reads the host, shows a risk level from its users, SSH, firewall, DNS, automatic updates and AppArmor, and gives each one a screen.
Nothing changes until you have seen it. Every change is shown first as a plan, with its diffs. A change that could lock you out, such as moving the SSH port or enabling the firewall, asks you to type the hostname, then rolls itself back unless you confirm it from a new SSH session. It is built for privately owned servers and homelabs, and it collects no data.
How to Install
Install the release binary, which is checked against the release's SHA-256 sums before it is installed. Then open the main menu, or preview what Run All would change without touching the host.
$ curl -fsSL https://raw.githubusercontent.com/abbott/hardn/main/install.sh | sudo sh
# View commands
$ hardn -h
# Open main menu
$ sudo hardn