LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gh-ssh-key

Manage SSH keys for GitHub authentication

TLDR

List SSH keys
$ gh ssh-key list
copy
Add an SSH key
$ gh ssh-key add [key.pub]
copy
Add with title
$ gh ssh-key add [key.pub] -t "[title]"
copy
Delete an SSH key
$ gh ssh-key delete [key_id]
copy

SYNOPSIS

gh ssh-key command [options]

DESCRIPTION

gh ssh-key manages SSH public keys associated with your GitHub account for secure Git authentication. SSH keys provide an alternative to HTTPS authentication, enabling passwordless git operations.The command supports adding new SSH keys from public key files, typically generated with ssh-keygen. Keys can be labeled with titles for identification when managing multiple keys across different machines. Deletion removes keys from your GitHub account, immediately revoking access.

PARAMETERS

-t, --title title

Key title.

SUBCOMMANDS

list

List SSH keys.
add
Add an SSH key.
delete
Delete an SSH key.

INSTALL

sudo apt install gh
copy
sudo dnf install gh
copy
sudo pacman -S github-cli
copy
sudo apk add github-cli
copy
sudo zypper install gh
copy
brew install gh
copy
nix profile install nixpkgs#gh
copy

SEE ALSO

gh(1), gh-gpg-key(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid