Document SSH connection multiplexing for production access#115
Merged
Conversation
Repeat SSH sessions to production (log checks, WP-CLI, fail2ban lookups) were paying full handshake cost each time. ControlMaster/ ControlPersist reuses an authenticated socket per remote user instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This documentation update introduces SSH connection multiplexing guidance to speed up repeated SSH and Ansible operations against production servers within Trellis workflows. It adds a new section to
trellis/provision/PROJECT-SETUP.mdexplaining how to configureControlMaster/ControlPersistsettings in~/.ssh/configso that subsequent connections reuse an existing authenticated session instead of renegotiating the SSH handshake each time. TheCHANGELOG.mdis updated to record this documentation addition. This change is purely additive documentation with no impact on existing scripts, playbooks, or automation behavior.Documentation and Developer Guidance:
PROJECT-SETUP.md, describing theControlMaster auto,ControlPath, andControlPersistSSH config directives and their effect on connection reuse.trelliscommands and Ansible playbook runs against production hosts by avoiding redundant SSH handshakes.CHANGELOG.mdto reflect the new documentation entry, keeping the change log aligned with recent additions to the provisioning guide.Files Changed:
CHANGELOG.md(Modified)trellis/provision/PROJECT-SETUP.md(Modified)