docs
docs copied to clipboard
MacOS 12+ - Narrow Host definition in .ssh/config
Code of Conduct
- [X] I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
What part(s) of the article would you like to see updated?
Environment
Adding the recommended directive to ~/.ssh/config
breaks other necessary SSH connections on my company-managed Macbook running MacOS 12 (Monterey)
BREAKING:
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
OK:
Host github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
Restricting the recommended new behavior to Host github.com
allows both connections to proceed as expected. As a general principle, recommending more tightly-scoped Host
settings might be a safer bet.
Additional information
No response
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.
@ChrisKeefe Thank you for opening an issue and linking it to your PR! ✨
Closing this as I believe the merged PR fixes it 💖