Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 3 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

 
discard

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.