docs icon indicating copy to clipboard operation
docs copied to clipboard

Adding your SSH key to the ssh-agent instructions are incorrect

Open simonw opened this issue 3 years ago • 2 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

This bit: https://github.com/github/docs/blob/5c6e71548effcc4e43dacf80dfbc4eb39aea7679/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md#L128

What part(s) of the article would you like to see updated?

The instructions say that you should edit ~/.ssh/config and add this to it:

Host *.github.com
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_ed25519

I tried that, but when I ran git clone [email protected]:simonw/sqlite-utils I still had to enter my password.

When I changed it to this my command worked correctly as expected, without asking for my password:

Host github.com
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_ed25519

Additional information

No response

simonw avatar Jan 27 '23 02:01 simonw

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 27 '23 02:01 welcome[bot]

@simonw Thank you for opening an issue and linking it to your PR! ✨

cmwilson21 avatar Jan 27 '23 21:01 cmwilson21