2025-03-14 21:59:59 -06:00
|
|
|
# gh ssh-key
|
|
|
|
|
|
|
|
|
|
> Manage GitHub SSH keys.
|
|
|
|
|
> 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:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gh ssh-key add {{[-t|--title]}} {{title}} {{path/to/key.pub}}`
|