feat(ssh): route GitHub SSH over port 443 - #1
Open
perezdap wants to merge 1 commit into
Open
Conversation
Add an opt-out (Y/n, default yes) step to the identity setup that writes a 'Host github.com -> ssh.github.com:443' block to ~/.ssh/config, working around networks that intermittently block or reset outbound SSH on port 22. Idempotent: skips if a 'Host github.com' block already exists. Mirrored across setup.ps1 and setup.sh with matching content-verification tests.
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.
What
Adds an opt-out (Y/n, default yes) step to the identity setup that writes a
Host github.com→ssh.github.com:443block to~/.ssh/config.Why
On some networks (corporate firewalls, ISPs, VPNs) outbound SSH on port 22 is intermittently blocked, throttled, or reset — surfacing as random
Connection timed out/Connection resetongit fetch/push, while HTTPS (443) stays reliable. GitHub officially supports SSH over itsssh.github.com:443endpoint, and routing through it sidesteps the problem without changing remotes or keys.Changes
setup.ps1— newSet-GitHubSSHOverHttpshelper + auto-run prompt inSet-GitIdentity.setup.sh— mirroredconfigure_github_ssh_over_httpshelper + prompt inconfigure_identity.tests/Test-GitHubSSHOverHttps.ps1andtests/test_github_ssh_over_https.sh(content-verification, matching existing style).Safety
Host github.comblock already exists in~/.ssh/config, so re-runs never duplicate or clobber.core.sshCommand -i <key>setup: key selection and host/port rewrite are orthogonal.Verification
setup.ps1parses clean;setup.shpassesbash -n.HOME: appends once, skips on re-run, exactly oneHost github.comblock.