docs
docs copied to clipboard
SSH doesn't use passphrase stored in keychain on MacOS Monterey, after following directions
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?
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
What changes are you suggesting?
Adding your SSH key to the ssh-agent
After following the directions given in this section, to store the passphrase in keychain, I continued to be prompted for the passphrase on every git push
. I am using MacOS 12.6.2.
After reading some forums on related issues on recent MacOS versions, I found that copying the command given at step 3(ssh-add --apple-use-keychain ~/.ssh/id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}
) into ~/.zshrc
gave correct behaviour.
Use case: Mac users encountering problems with SSH connections using a stored passphrase.
Expected outcome: a note to suggest a fix to this problem, if encountered.
I suggest adding to the note at step 3 that this extra step may be required, e.g.:
If you continue to be prompted for your passphrase, you may need to add the above command to your
~/.zshrc
file (or.bashrc
for bash).
Additional information
~/.ssh/config
is as per the instructions given, with no other contents.
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.
@oC-n Thanks for opening an issue and providing all the helpful context ✨
I'll get this triaged for review! :zap:
Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert :eyes:
This is a gentle bump for the docs team that this issue is waiting for technical review.
This is a safe/sane adjustment to make to the macOS docs 👍
@oC-n Thanks for raising this issue! You, or anyone else, are welcome to submit a PR with this fix ✨
Thanks @am-stead, and apologies for not getting the PR sorted myself - a bit overwhelmed in a new job!
On Tue, 13 Jun 2023 at 08:11, Anne-Marie @.***> wrote:
Closed #23159 https://github.com/github/docs/issues/23159 as completed via #24505 https://github.com/github/docs/pull/24505.
— Reply to this email directly, view it on GitHub https://github.com/github/docs/issues/23159#event-9511964257, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASHBZBD5YCSYWYJMEC5MD6DXLAHBNANCNFSM6AAAAAATYFNLVI . You are receiving this because you were mentioned.Message ID: @.***>
https://33win00.com/