Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to find a way to delete a single ssh identity from my Mac's ssh-agent, the ssh-add man page states the -d option does

Instead of adding identities, removes identities from the agent.
If ssh-add has been run without arguments, the keys for the default identities will be removed. 
Otherwise, the argument list will be interpreted as a list of paths to public key files and matching keys will be removed from the agent.
If no public key is found at a given path, ssh-add will append .pub and retry.

Since I have multiple keys I can't call them all id_dsa and I can't pass them as an argument since I wan't to delete the identities not the public keys.

So does anyone know another way to delete from ssh-agent on a Mac?

share|improve this question
up vote 7 down vote accepted

You can open Keychain Access located in /Applications/Utilities/ and navigate to your login keychain login keychain.

Once there, you can delete SSH keys. They should look like SSH: /Users/your username/.ssh/key name SSH Key

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.