mirror of
https://github.com/buildplan/du_setup.git
synced 2025-12-29 16:14:59 +00:00
Update README.md
This commit is contained in:
10
README.md
10
README.md
@@ -35,20 +35,20 @@ It is designed to be **idempotent**, **safe**, and suitable for **production env
|
|||||||
|
|
||||||
### 1. Download the script
|
### 1. Download the script
|
||||||
|
|
||||||
```bash
|
```
|
||||||
wget https://raw.githubusercontent.com/buildplan/learning/refs/heads/main/setup_harden_debian_ubuntu.sh
|
wget https://raw.githubusercontent.com/buildplan/setup_harden_server/refs/heads/main/setup_harden_debian_ubuntu.sh
|
||||||
chmod +x setup_harden_debian_ubuntu.sh
|
chmod +x setup_harden_debian_ubuntu.sh
|
||||||
````
|
````
|
||||||
|
|
||||||
### 2. Run the script as root
|
### 2. Run the script as root
|
||||||
|
|
||||||
```bash
|
```
|
||||||
sudo ./setup_harden_debian_ubuntu.sh
|
sudo ./setup_harden_debian_ubuntu.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Optional: Run in quiet mode
|
### 3. Optional: Run in quiet mode
|
||||||
|
|
||||||
```bash
|
```
|
||||||
sudo ./setup_harden_debian_ubuntu.sh --quiet
|
sudo ./setup_harden_debian_ubuntu.sh --quiet
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ sudo ./setup_harden_debian_ubuntu.sh --quiet
|
|||||||
|
|
||||||
* **SSH Locked Out?** Use the server console and restore:
|
* **SSH Locked Out?** Use the server console and restore:
|
||||||
|
|
||||||
```bash
|
```
|
||||||
cp /root/setup_harden_backup_*/sshd_config /etc/ssh/sshd_config
|
cp /root/setup_harden_backup_*/sshd_config /etc/ssh/sshd_config
|
||||||
systemctl restart ssh
|
systemctl restart ssh
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user