Forrest logo
back to the gh tool

gh-ssh-key:tldr:6e8d4

gh-ssh-key: List SSH keys for the currently authenticated user.
$ gh ssh-key list
try on your machine

The command gh ssh-key list is used to list all the SSH keys associated with your GitHub account using the GitHub CLI (Command Line Interface).

Here's a breakdown of each part of the command:

  • gh: It is the executable for the GitHub CLI that provides a command-line interface to interact with GitHub.

  • ssh-key: It is the subcommand used to manage SSH keys associated with your GitHub account.

  • list: It is the action you want to perform using the ssh-key subcommand. In this case, it lists all the SSH keys associated with your account.

When you execute the command gh ssh-key list, it will retrieve and display a list of all the SSH keys available in your GitHub account. Each key will have a unique identifier (ID) along with the associated title and fingerprint. This information can help you manage, update, or delete SSH keys on your GitHub account.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gh tool