2021-02-24 13:39:13 +00:00
|
|
|
# gh ssh-key
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> Manage GitHub SSH keys from the command-line.
|
2021-02-24 13:39:13 +00:00
|
|
|
> More information: <https://cli.github.com/manual/gh_ssh-key>.
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`gh ssh-key`
|
|
|
|
|
|
|
|
- List SSH keys for the currently authenticated user:
|
|
|
|
|
|
|
|
`gh ssh-key list`
|
|
|
|
|
|
|
|
- Add an SSH key to the currently authenticated user's account:
|
|
|
|
|
|
|
|
`gh ssh-key add {{path/to/key.pub}}`
|
|
|
|
|
|
|
|
- Add an SSH key to the currently authenticated user's account with a specific title:
|
|
|
|
|
|
|
|
`gh ssh-key add --title {{title}} {{path/to/key.pub}}`
|