gh-ssh-key

Manage GitHub SSH keys from the command line.

TLDR

Display help

$ gh ssh-key
copy

List SSH keys for the currently authenticated user

$ gh ssh-key list
copy

Add an SSH key to the currently authenticated user's account

$ gh ssh-key add [path/to/key.pub]
copy

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]
copy

SYNOPSIS

gh ssh-key <command> [flags]

DESCRIPTION

Manage SSH keys registered with your GitHub account

COMMANDS

gh-ssh-key-add(1)

Add an SSH key to your GitHub account

gh-ssh-key-list(1)

Lists SSH keys in your GitHub account

SEE ALSO

gh(1)

Copied to clipboard
snescontroller