mirror of
https://github.com/buildplan/du_setup.git
synced 2025-12-29 16:14:59 +00:00
Merge pull request #69 from buildplan/dev
add custom .bashrc for new user
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
||||||
**Version:** v0.71
|
**Version:** v0.72
|
||||||
|
|
||||||
**Last Updated:** 2025-10-20
|
**Last Updated:** 2025-10-20
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ This script automates the initial setup and security hardening of a fresh Debian
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* **Secure User Management**: Creates a new `sudo` user and disables root SSH access.
|
* **Secure User Management**: Creates a new `sudo` user and disables root SSH access. Optionally installs a custom .bashrc for enhanced terminal experience.
|
||||||
* **SSH Hardening**: Configures a custom SSH port, enforces key-based authentication, and applies security best practices.
|
* **SSH Hardening**: Configures a custom SSH port, enforces key-based authentication, and applies security best practices.
|
||||||
* **Firewall Configuration**: Sets up UFW with secure defaults and customizable rules.
|
* **Firewall Configuration**: Sets up UFW with secure defaults and customizable rules.
|
||||||
* **Intrusion Prevention**: Installs and configures **Fail2Ban** to block malicious IPs.
|
* **Intrusion Prevention**: Installs and configures **Fail2Ban** to block malicious IPs.
|
||||||
@@ -87,12 +87,12 @@ sha256sum du_setup.sh
|
|||||||
|
|
||||||
Compare the output hash to the one below. They must match exactly.
|
Compare the output hash to the one below. They must match exactly.
|
||||||
|
|
||||||
`dfc27413d157a29510f2f516cf594a9940942ec8622d292d94a3936b4490a2a6`
|
`e402db17ee1738ec96b2f4e2bcd1d1756df8b6a7e49de0953681a49f7f42fe18`
|
||||||
|
|
||||||
Or echo the hash to check, it should output: `du_setup.sh: OK`
|
Or echo the hash to check, it should output: `du_setup.sh: OK`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
echo dfc27413d157a29510f2f516cf594a9940942ec8622d292d94a3936b4490a2a6 du_setup.sh | sha256sum --check
|
echo e402db17ee1738ec96b2f4e2bcd1d1756df8b6a7e49de0953681a49f7f42fe18 du_setup.sh | sha256sum --check
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Run the Script
|
### 3. Run the Script
|
||||||
|
|||||||
1265
du_setup.sh
1265
du_setup.sh
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
|||||||
dfc27413d157a29510f2f516cf594a9940942ec8622d292d94a3936b4490a2a6 du_setup.sh
|
e402db17ee1738ec96b2f4e2bcd1d1756df8b6a7e49de0953681a49f7f42fe18 du_setup.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user