docs icon indicating copy to clipboard operation
docs copied to clipboard

SSH commit signing: Missing "key::" prefix for literal key in setup instructions

Open DrJosh9000 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/managing-commit-signature-verification/telling-git-about-your-signing-key

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

Step 4 of "Telling Git about your SSH key" configures the signing key incorrectly. When using the literal contents of a key, the config value needs to be prefixed with "key::", e.g.

$ git config --global user.signingkey 'key::ssh-ed25519 AAAAC3(...) [email protected]'

With a key residing in a file, the path to the key can be provided (without a prefix).

See also https://lore.kernel.org/git/20220628162342.ootjobbjtxg7b7ay@fs/t/

Additional information

No response

DrJosh9000 avatar Aug 24 '22 08:08 DrJosh9000

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 Aug 24 '22 08:08 welcome[bot]

@DrJosh9000 Thanks so much for opening an issue! I'll triage this for the team to take a look :eyes:

cmwilson21 avatar Aug 24 '22 13:08 cmwilson21