This repository is a collection of scripts designed to secure/harden Linux based Distributions.
All you need to do is download this repository to your local machine:
git clone https://github.com/StrangeRanger/linux-security-scripts
Note
Some of the scripts in this repository require root privileges to run. You can run the scripts with the sudo
command to give them the necessary permissions.
You can run the scripts in this repository by using the following command:
./[script name]
OR bash [script name]
All of the scripts should work on most, if not all Linux Distributions. With that said, below is a list of Linux Distributions that the scripts have been officially tested and are confirmed to work on.
Distributions | Distro Versions |
---|---|
Ubuntu | 24.04, 22.04, 20.04 |
Debian | 11, 10, 9 |
While this repository has scripts that can help secure Linux, it's not nearly enough to secure the system as much as it needs to be. Below is a list of other resources that you can/should use to help make your system as secure as possible.
- SSH Audit - SSH server & client auditing (banner, key exchange, encryption, mac, compression, compatibility, security, etc).