Skip to content

SSH hardening safety nets#102

Merged
buildplan merged 9 commits intomainfrom
dev
Feb 28, 2026
Merged

SSH hardening safety nets#102
buildplan merged 9 commits intomainfrom
dev

Conversation

@buildplan
Copy link
Owner

@buildplan buildplan commented Feb 28, 2026

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.

@buildplan buildplan changed the title SSH hardening safety nets (#100) SSH hardening safety nets Feb 28, 2026
@buildplan buildplan linked an issue Feb 28, 2026 that may be closed by this pull request
@buildplan buildplan added bug Something isn't working enhancement New feature or request labels Feb 28, 2026
@buildplan buildplan merged commit 78515c6 into main Feb 28, 2026
11 checks passed
@buildplan buildplan deleted the dev branch February 28, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fallback option for ssh hardening

1 participant