Skip to content

keychain 2.9.2: can't delete ssh-keys #163

@danielrobbins

Description

@danielrobbins

When using gpg-agent as a replacement for ssh-agent with the --ssh-spawn-gpg option, typing "keychain --wipe ssh" does not wipe SSH keys from the agent. In fact, manually calling "ssh-add -D" to delete all keys also fails. This appears to be a known issue, with the situation and some workarounds documented here:

https://unix.stackexchange.com/questions/185393/gpg-agent-doesnt-remove-my-ssh-key-from-the-keyring

Here is the problem in a nutshell:

drobbins@localhost ~/development/keychain $ ssh-add -l
3072 SHA256:dbl2zqMWG2pzlwDfFOVME+nNEAeVjtlihY/fLKecV5o drobbins@localhost (RSA)
256 SHA256:N/yhZP6w8fqrq4jQyeRfgxP986ryH3Sx5hrTaS42HCw drobbins@localhost (ED25519)
drobbins@localhost ~/development/keychain $ ssh-add -D
All identities removed.
drobbins@localhost ~/development/keychain $ ssh-add -l
3072 SHA256:dbl2zqMWG2pzlwDfFOVME+nNEAeVjtlihY/fLKecV5o drobbins@localhost (RSA)
256 SHA256:N/yhZP6w8fqrq4jQyeRfgxP986ryH3Sx5hrTaS42HCw drobbins@localhost (ED25519)

Metadata

Metadata

Assignees

Labels

consideringA change being considered

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions