Add SHA256 integrity verification

This commit is contained in:
Ali
2025-06-29 21:29:44 +01:00
parent 91720a8f78
commit 573a57159d
3 changed files with 20 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
# Debian & Ubuntu Server Setup & Hardening Script
**Version:** 4.2
**Version:** 4.3
**Last Updated:** 2025-06-29
@@ -45,20 +45,20 @@ This script automates the initial setup and security hardening of a fresh Debian
### 1. Download the Script
```bash
```
wget https://raw.githubusercontent.com/buildplan/setup_harden_server/refs/heads/main/setup_harden_debian_ubuntu.sh
chmod +x setup_harden_debian_ubuntu.sh
```
### 2. Run Interactively (Recommended)
```bash
```
sudo ./setup_harden_debian_ubuntu.sh
```
### 3. Run in Quiet Mode (for Automation)
```bash
```
sudo ./setup_harden_debian_ubuntu.sh --quiet
```
@@ -66,6 +66,17 @@ sudo ./setup_harden_debian_ubuntu.sh --quiet
>
> Ensure your VPS providers firewall allows the custom SSH port, backup servers SSH port (e.g., 23 for Hetzner Storage Box), and Tailscale traffic (UDP 41641 for direct connections).
### Verify Script Integrity (Optional but Recommended)
After downloading the script, verify its integrity:
```
wget https://raw.githubusercontent.com/buildplan/setup_harden_server/main/setup_harden_debian_ubuntu.sh
wget https://raw.githubusercontent.com/buildplan/setup_harden_server/main/setup_harden_debian_ubuntu.sh.sha256
sha256sum -c setup_harden_debian_ubuntu.sh.sha256
```
## What It Does
| Task | Description |
@@ -237,4 +248,4 @@ If Tailscale fails to connect:
## [MIT](https://github.com/buildplan/setup_harden_server/blob/main/LICENSE) License
This script is open-source and provided "as is" without warranty. Use at your own risk.
This script is open-source and provided "as is" without warranty. Use at your own risk.