« Back to SSH: Frequently Asked Questions

How to see the available SSH keys in the OpenSSH authentication agent

This article has last been updated at .

How to see the available SSH keys in the OpenSSH authentication agent?

Use the ssh-add command to display any available keys that are known to the SSH agent.

ssh-add -l

The OpenSSH authentication agent stores the SSH identities and may use them when connecting to a SSH server. With the ssh-add command and -l option the fingerprints of the known identities can be shown.

ssh-add -l

If the agent is not running, then you will see the message ‘Could not open a connection to your authentication agent.’.

Other questions related to SSH

Feedback

Small picture of Michael Boelen

This article has been written by our Linux security expert Michael Boelen. With focus on creating high-quality articles and relevant examples, he wants to improve the field of Linux security. No more web full of copy-pasted blog posts.

Discovered outdated information or have a question? Share your thoughts. Thanks for your contribution!

Mastodon icon

Related articles

Like to learn more? Here is a list of articles within the same category or having similar tags.