mirror of
https://github.com/buildplan/du_setup.git
synced 2026-04-26 10:35:51 +03:00
[PR #102] [MERGED] SSH hardening safety nets #99
Labels
No labels
bug
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/du_setup#99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/buildplan/du_setup/pull/102
Author: @buildplan
Created: 2/28/2026
Status: ✅ Merged
Merged: 2/28/2026
Merged by: @buildplan
Base:
main← Head:dev📝 Commits (9)
27ded15feat(confirm): add optional timeout for confirmation prompts4a8670bfeat(ssh): update version to 0.80.1 and add SSH key improvements135462cfeat(ssh): enhance SSH port detection to include socket and exclude specific portsb1bf089feat(ssh): SSH port configuration and hardening in single drop-in files10416b2feat(ssh): update SSH socket configuration to bind to both IPv4 and IPv6 addresses46eae38prompt formatting4066654feat(port-validation): enhance port validation2adb555checksum for v0.80.13a38d69chore: update version and checksum📊 Changes
3 files changed (+172 additions, -133 deletions)
View changed files
📝
README.md(+4 -4)📝
du_setup.sh(+167 -128)📝
du_setup.sh.sha256(+1 -1)📄 Description
Fallback protections suggested in #100 to prevent accidental lockouts.
Connection timeout: Added a 5-minute timeout to the SSH and 2FA connection tests so they auto-revert if the user's session drops.
Existing user key validation: The script now strictly requires existing users to provide or generate a valid SSH key before disabling password auth.
Config lexical ordering: Renamed the SSH drop-in to 10-hardening.conf so our hardening rules evaluate before provider defaults (like cloud-init).
Fixed an issue where roll-back only binds to IPv6 if a system has IPv6 enabled.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.