Skip to content

Find and replace all lines in SSHD config instead of append-only#584

Open
seanchristians wants to merge 6 commits intousnistgov:mainfrom
seanchristians:fix_clientalivecountmax_configure
Open

Find and replace all lines in SSHD config instead of append-only#584
seanchristians wants to merge 6 commits intousnistgov:mainfrom
seanchristians:fix_clientalivecountmax_configure

Conversation

@seanchristians
Copy link
Copy Markdown

@seanchristians seanchristians commented Nov 7, 2025

I copied over the grep -qEi && sed || echo > pattern from the other SSH rules into the SSHD rules.

This fixes an issue I had in testing where the previous configuration was not overwritten, a new line was simply added to the file and SSHD did not adopt the change.

@seanchristians seanchristians changed the title Find and replace all lines in SSHD config for os_sshd_client_alive_count_max_configure Find and replace all lines in SSHD config instead of append-only Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant