docs icon indicating copy to clipboard operation
docs copied to clipboard

SSH doesn't use passphrase stored in keychain on MacOS Monterey, after following directions

Open oC-n opened this issue 2 years ago • 3 comments

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.

oC-n avatar Jan 11 '23 15:01 oC-n

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.

welcome[bot] avatar Jan 11 '23 15:01 welcome[bot]

@oC-n Thanks for opening an issue and providing all the helpful context ✨

I'll get this triaged for review! :zap:

cmwilson21 avatar Jan 12 '23 14:01 cmwilson21

Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert :eyes:

github-actions[bot] avatar Jan 26 '23 14:01 github-actions[bot]

This is a gentle bump for the docs team that this issue is waiting for technical review.

github-actions[bot] avatar Feb 23 '23 16:02 github-actions[bot]

This is a safe/sane adjustment to make to the macOS docs 👍

hagould avatar Mar 07 '23 17:03 hagould

@oC-n Thanks for raising this issue! You, or anyone else, are welcome to submit a PR with this fix ✨

cmwilson21 avatar Mar 13 '23 19:03 cmwilson21

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: @.***>

oC-n avatar Jun 13 '23 21:06 oC-n

https://33win00.com/

Ngocnu29 avatar Jun 13 '23 22:06 Ngocnu29