0

I have about 5 SSH keys on my computer, and I've added 2 SSH keys by using ssh-add command. When listing all SSH keys, I can use ssh-add -l command

enter image description here

How can I delete a single or all SSH key that I just added?

NM Naufaldo
  • 1,032
  • 1
  • 12
  • 30

1 Answers1

1

I mentioned before ssh-add -D to delete all your manually added keys.

The other option would be to kill the ssh-agent process, restart it and add only the one you want to keep.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250