1.6 KiB
1.6 KiB
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/hostsfile 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.
dnforyumpackage manager.
Usage
-
Clone the repository:
git clone https://git.nickhepler.cloud/nick/RHELSecureInstanceSetup.git cd RHELSecureInstanceSetup -
Make the script executable:
chmod +x update_system.sh -
Run the script with root privileges:
sudo ./update_system.sh -
Follow the prompts:
- Enter your public SSH key when prompted.
Configuration
- You can customize the
hostnameandtimezonevariables 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
- Inspired by the documentation from Akamai (formerly Linode) for setting up and securing compute instances.