RHELSecureSetup is a Bash script designed to streamline the process of securing RHEL-based Linux distributions. By automating system updates and security configurations, it helps ensure that your instance is protected from vulnerabilities.
Go to file
2024-10-10 15:51:02 -04:00
LICENSE Initial commit 2024-10-10 15:37:04 -04:00
README.md Update README 2024-10-10 15:51:02 -04:00

SecureInstanceSetup

Overview

SecureInstanceSetup is a script designed to set up and secure a compute instance on RHEL-based distributions. This script ensures that your instance is up-to-date, secure, and ready for use.

Features

  • Updates the system packages.
  • Sets the timezone and hostname.
  • Modifies SSH configuration to enhance security.
  • Updates the /etc/hosts file with the instance's IP address and hostname.
  • Prompts for a public SSH key for secure access.

Prerequisites

  • A RHEL-based Linux distribution (e.g., CentOS, Fedora, RHEL).
  • Root access or sudo privileges.
  • dnf or yum package manager.

Usage

  1. Clone the repository:

    git clone https://git.nickhepler.cloud/nick/RHELSecureInstanceSetup.git
    cd RHELSecureInstanceSetup
    
  2. Make the script executable:

    chmod +x update_system.sh
    
  3. Run the script with root privileges:

    sudo ./update_system.sh
    
  4. Follow the prompts:

    • Enter your public SSH key when prompted.

Configuration

  • You can customize the hostname and timezone variables in the script as needed.

License

This project is licensed under the GNU General Public License v3.0 or later. See the LICENSE file for details.

Contributing

Contributions are welcome! Please submit a pull request or open an issue for any enhancements or bug fixes.

Acknowledgments