gh-ssh-key - Man Page
Manage SSH keys
Examples (TL;DR)
- 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
Synopsis
gh ssh-key <command> [flags]
Description
Manage SSH keys registered with your GitHub account.
Available Commands
- gh-ssh-key-add(1)
Add an SSH key to your GitHub account
- gh-ssh-key-delete(1)
Delete an SSH key from your GitHub account
- gh-ssh-key-list(1)
Lists SSH keys in your GitHub account
See Also
Referenced By
gh(1), gh-ssh-key-add(1), gh-ssh-key-delete(1), gh-ssh-key-list(1).
Jul 2024 GitHub CLI manual