-1

I have tried some things already after reading some forums, but this still shows up when I list all of my ssh keys.

Picture of what I have tried

How would I delete them all to start fresh in learning them?
I apologize if this is a stupid question or a simple fix, I am just learning how to use Git and all of its technologies.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Lanek
  • 7
  • 2
  • Your last command does seem to have deleted the keys? Are you just worried about the `.config.swp` file? – shriakhilc Dec 28 '21 at 18:17
  • 1
    Please [don’t post images of code or error messages.](https://meta.stackoverflow.com/questions/285551/why-not-upload-images-of-code-on-so-when-asking-a-question/285557#285557) – tripleee Dec 28 '21 at 18:35
  • yes, sorry I'm so new to this. what does that file mean? – Lanek Dec 28 '21 at 18:36
  • Deleting your config file as well might not have been what you wanted. You have backups, I hope. – tripleee Dec 28 '21 at 18:37
  • It doesn't look like `~` and `/home/vivek` are the same directory, either. – chepner Dec 28 '21 at 18:46
  • No need to change your question. It is a legitimate one, and I have answered it below. Next time, consider https://superuser.com/ for this type of question. – VonC Dec 29 '21 at 06:46
  • Thank you "VonC" for legitimately being a decent human being and pointing me in the right direction instead just showing me rules and regs saying how I'm in the wrong space for this type of question. – Lanek Dec 29 '21 at 21:18
  • @Lan you are most welcome. Sorry for this Stack Overflow first experience. Have a look around, it is a good community. – VonC Dec 29 '21 at 21:34

1 Answers1

1

When you ls ~/.ssh, there is no more keys (public or private)

The .config.swp is just a swap file created by vi and can be ignored.

You might also need to kill the ssh-agent, if you previously added private encrypted keys (which were passphrase-protected).


~ should expand to ${HOME}, which, as commented, might not be /home/vivek.
Make sure to know which user account you are currently logged in:

id -a
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250