![Forrest logo](/images/logo.png)
ssh:tldr:96757
ssh: Delete all currently loaded keys from the ssh-agent.
$ ssh-add -D
try on your machine
The command "ssh-add -D" is used to remove all identities currently stored in the SSH agent.
Here is a breakdown of each element in the command:
- "ssh-add": This is the command to manage identities in the SSH agent. It allows you to add, remove, or list SSH identities.
- "-D": This option is used with the "ssh-add" command to delete or remove all identities from the SSH agent.
When you execute "ssh-add -D", it will instruct the SSH agent to delete all stored identities, effectively clearing out any stored SSH keys or identities that you may have added previously. This can be useful if you want to remove all identities and start fresh, or if you want to remove a specific identity from the agent.
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.