Skip to content

Instantly share code, notes, and snippets.

View benwaco's full-sized avatar

Ben Waco benwaco

  • 20:39 (UTC -08:00)
View GitHub Profile
#!/bin/bash
# 1. Check if the script is run as root (sudo)
if [ "$EUID" -ne 0 ]; then
echo "❌ Error: Please run this script with sudo or as root."
exit 1
fi
echo "--- SSH Security Hardening Script ---"