Forrest logo
back to the ssh-add tool

ssh:tldr:ee977

ssh: List fingerprints of currently loaded keys.
$ ssh-add -l
try on your machine

The command "ssh-add -l" is used to list the fingerprints of the identities that have been added to the SSH authentication agent.

The SSH authentication agent is a program that holds private keys and remembers their passphrase (if one is set) in memory, so that you don't have to enter the passphrase every time you use the private key to authenticate with a remote server.

When you run "ssh-add -l" command, it queries the SSH authentication agent and lists the fingerprints of the identities (or private keys) that have been added to it. The fingerprint is a unique identifier for a key and is used to verify the authenticity of the key when connecting to a remote server.

It is often useful to run this command to check if your private key has been successfully added to the SSH authentication agent before attempting to use it for authentication.

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 ssh-add tool