mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
566 B
Plaintext
26 lines
566 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# gh ssh-key
|
|
|
|
> Manage GitHub SSH keys.
|
|
> More information: <https://cli.github.com/manual/gh_ssh-key>.
|
|
|
|
- List SSH keys for the currently authenticated user:
|
|
|
|
`gh ssh-key {{[ls|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 {{[-t|--title]}} {{title}} {{path/to/key.pub}}`
|
|
|
|
- Display help:
|
|
|
|
`gh ssh-key`
|