gitsshgit-bashssh-keysrsa-key-fingerprint

How to unlink the previous SSH key in Git


I have followed the following steps to create and add a SSH key and deleted all the previously created keys in the folder ~/.ssh/

Then I try:

and I get:

The authenticity of host 'github.com (140.82.121.4)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])?

(That key is one of the previous I had created and deleted)

What can I do to overcome this issue?


Solution

  • The authenticity of host 'github.com (140.82.121.4)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])?

    This message has nothing to do with the key that you created. You'll get a message like this the first time you connect to any SSH server. The SSH server that you connected to starts by identifying itself to your ssh client, and this message means that your client doesn't recognize the server that it connected to.

    You would generally reply to this by typing "yes" and pressing Enter, unless you have a particular reason to believe something funny is going on.