-
Release version 2024.10 Stable
released this
2024-10-14 18:09:15 -04:00 | 1 commits to master since this releaseRelease Notes for Initial RHELSecureSetup Release
Overview
This script automates the setup of RHEL-based Linux systems, streamlining essential configuration tasks such as system updates, timezone and hostname setup, user account creation, SSH security hardening, and optional Docker CE installation.
Key Features
- System Update: Automatically updates and upgrades installed packages.
- Timezone Setup: Configures the timezone to
America/New_York. - Hostname Configuration: Prompts for a new hostname and applies it.
- User Account Creation: Creates a limited user account with sudo privileges.
- SSH Configuration:
- Disables root login and password authentication.
- Ensures SSH is configured for IPv4.
- Docker Installation: Offers an option to install Docker CE and adds the user to the Docker group.
- Hosts File Update: Updates
/etc/hostswith the new hostname and IP address.
Usage Instructions
- Run the script as root.
- Follow the prompts to set the hostname, create a user, and optionally install Docker.
- Copy your public SSH key as instructed.
- The script restarts SSH and cleans up unused packages.
Note: This script is intended for RHEL-based distributions using
dnforyum. Please ensure compatibility before running.Downloads