Commit Graph
30 Commits
Author SHA1 Message Date
247LIKE eab93f3e08 Fix CentOS 7 EOL and improve workflow steps
Updated the GitHub Actions workflow to fix CentOS 7 EOL repository issues and improve container initialization steps.
2025-12-16 10:08:18 +08:00
247LIKE 51fb3bd675 Enhance test workflow for better OS compatibility
Updated the test workflow to improve compatibility with CentOS and other distributions. Added comments for clarity and fixed the initialization process for various environments.
2025-12-16 10:03:58 +08:00
247LIKE 9da662f8d6 Add GitHub Actions workflow for testing multiple containers 2025-12-16 09:59:25 +08:00
247LIKE ba55116491 Update warning messages and enhance user validation 2025-12-16 09:47:19 +08:00
247LIKE e5d587595d Update release version and changelog to v4.6.2 2025-12-15 19:50:59 +08:00
247LIKE 3368584ccd Bump version to v4.6.1 and enhance security features
Updated the script version to v4.6.1 and made various security fixes, including symlink protection and improved validation for SSH keys and configurations.
2025-12-15 19:18:12 +08:00
247LIKE 03c43cd2a8 Update init.sh 2025-12-15 18:39:12 +08:00
247LIKE 2696a28765 Update README_EN.md 2025-12-15 17:57:24 +08:00
247LIKE 5c1cd73017 Update README.md 2025-12-15 17:52:50 +08:00
247LIKE de60b8c050 Revise README with updated badge links and features
Updated badge links and improved security architecture details in README.
2025-12-15 17:51:47 +08:00
247LIKE cde36a6b80 update 2025-12-15 17:24:36 +08:00
247LIKE 4b014f21c8 Release v4.0.0
Release v4.0.0: Platinum Edition - Health Reports, Metadata Backups & POSIX Compliance

Major release v4.0.0 brings enterprise-grade reliability and strict POSIX compliance.

New Features:
- Feat: Added comprehensive `preflight_checks` to verify core tools, disk space, and memory before execution.
- Feat: Implemented triple-redundancy IPv6 detection (checking `/proc`, `ip`, and `ifconfig`) to ensure accuracy on minimal/container systems.
- Feat: Added persistent, versioned backups in `/var/backups/ssh-config/` with accompanying `.meta` files for audit trails.
- Feat: Automatically generates a detailed `Health Report` upon successful completion.

Fixes & Improvements:
- Refactor: Replaced all Bash-isms (e.g., arrays) with strict POSIX string handling for full Alpine/Dash compatibility.
- Fix: Clarified random port generation logic to strictly avoid Kubernetes NodePort range (30000-32767).
- Security: Enhanced temporary directory handling using `mktemp` and traps for secure cleanup.
2025-12-15 13:08:44 +08:00
247LIKE ee4161e30b Release v1.0.5: Critical hardening, improved compatibility, and logic fixes
This major update upgrades the script from v1.0.0 to v1.0.5 (Production Gold).

**Key Improvements & Fixes:**

* **Critical Fixes:**
    * Fixed `ss` command parsing logic to prevent port detection false positives (e.g., port 22 matching port 2).
    * Fixed log file initialization order to prevent crashes before dependency checks.
    * Added `export LC_ALL=C` to ensure consistent POSIX command behavior across different locales.

* **Safety Hardening:**
    * Added passive detection for `AllowUsers` configuration trap to prevent lockout.
    * Improved `sshd_config` cleanup regex to handle indented lines correctly.
    * Added fail-safe protection for log writing (prevents script crash if log is unwritable).

* **Compatibility:**
    * Added `wget` fallback for key fetching if `curl` is missing.
    * Updated `chown` syntax to `user:` for better group compatibility on Alpine/minimal systems.
    * Added pre-flight check for core dependencies (`grep`, `awk`, `sed`, `id`).
    * Forced `procps` installation check before enabling BBR.

* **Refactor:**
    * Optimized i18n handling (optional based on implementation).
2025-12-15 11:14:42 +08:00
247LIKE d4e94f0b33 Change default language from English to Chinese 2025-12-12 21:00:47 +08:00
247LIKE 2a3cb4bbd9 Update README_EN.md 2025-12-12 20:28:20 +08:00
247LIKE f1349ac4e4 Fix link to English README file 2025-12-12 20:26:04 +08:00
247LIKE c1cf0be5ec Update README.md 2025-12-12 20:25:29 +08:00
247LIKE 9f9400c81f Update README.md 2025-12-12 20:22:32 +08:00
247LIKE b228af83d9 Update README.md 2025-12-12 20:22:03 +08:00
247LIKE 0142134e9c Update README.md 2025-12-12 20:21:43 +08:00
247LIKE 1468dc21c0 Update README.md 2025-12-12 20:21:18 +08:00
247LIKE 3bcfbad992 Fix links and enhance README content
Updated links and descriptions for clarity and consistency.
2025-12-12 20:16:10 +08:00
247LIKE c2c0253804 Update init.sh 2025-12-12 20:11:09 +08:00
247LIKE ff4654d94f Update README for Chinese localization and instructions 2025-12-12 20:06:41 +08:00
247LIKE a74bd2a07a Create README_EN.md for project documentation
Added README for Linux Server Init & SSH Hardening Script.
2025-12-12 19:52:57 +08:00
247LIKE a214efc6ae Revise README for language and formatting updates
Updated language options and improved formatting in README.
2025-12-12 19:51:43 +08:00
247LIKE b0d908ba2d init 2025-12-12 19:42:33 +08:00
247LIKE 7da9688943 Add initial server init and SSH hardening script
Initial production release of the linux-ssh-init-sh script with integrated i18n support for English and Chinese.
2025-12-12 19:41:06 +08:00
247LIKE c888e95680 Revise README for Linux SSH Init Script
Updated README to enhance clarity and provide detailed features.
2025-12-12 19:36:38 +08:00
247LIKE 2c6f1d3364 Initial commit 2025-12-12 19:35:08 +08:00