dolegi / lockdown.sh

Lockdown your linux install. The simple zero config linux hardening script
GNU General Public License v3.0
361 stars 27 forks source link
debian harden linux lockdown lynis security

lockdown.sh



Lockdown.sh is a single file zero config shell script to be run to lockdown a newly installed linux os. Lockdown.sh aims to set a sensible baseline which can be built upon for specific needs.

WARNING

This script changes the ssh port to 141. And restricts ssh to key only for the created admin user if an admin user is created.

Usage

Download and run the script as root, select which sections to run when prompted.

wget https://raw.githubusercontent.com/x08d/lockdown.sh/master/lockdown.sh
chmod +x ./lockdown.sh
./lockdown.sh

What does it do?

Supported OS

Contributing

Please open pull requests and issues on github for anything you find.

References