Skip to content

Fix example in "Adding your ssh key to the ssh agent" #22480

Closed
@skullbunnygalaxy

Description

@skullbunnygalaxy

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 part(s) of the article would you like to see updated?

The Mac portion of this article, specifically Adding your ssh key to the ssh agent, needs to be fixed.

Currently, the example for adding to ~/.ssh/config reads as:

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

However, this does not work. Using Host *.github.com results in a Permission denied (publickey) error.

Once adjusted to Host github.com it works. The documentation does have a page for that error, which I used when troubleshooting the issue, but the page does not list this as one of the potential causes.

Expected outcome: Change the example from Host *.github.com to Host github.com in order for it to work as expected and not result in errors.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    authenticationContent relating to authenticationcontentThis issue or pull request belongs to the Docs Content team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions