Reputation: 39
Using Windows 10 Dell System Computer.
I want to be able from local repo send push files into my new GitHub repository.
It does not allow me to use the https protocol for it continues to prompt me to continue connection to a RSA key fingerprint which I do not recognize.
I have generated a new key. I need to know or where is that inventory of RSA key fingerprint located in my file system.
I have:
git push -u origin main
" to my new GitHub repository.At the command line:
The authenticity of host 'github.com (140.82.XXx.x)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no/[fingerprint])? no
Host key verification failed.
fatal: Could not read from remote repository.
SOLUTION ???
Upvotes: 2
Views: 10453
Reputation: 394
A prompt like the one described in the question means that GitHub.com isn't in your known hosts.
If you simply answer 'y' when prompted (as this answer suggests), you're trusting (without checking) that the RSA fingerprint that you're being prompted with matches GitHub.com's RSA fingerprint i.e. that you are really connecting to GitHub.com.
The purpose of this prompt is to give you a chance to verify that the RSA fingerprint that you're presented with really does match, so that you can be sure that you really are connecting to GitHub.com. So for optimal security, you should actually check, rather than just entering 'y' at the prompt without checking.
Here's how to check and ensure that the RSA fingerprint matches:
Are you sure you want to continue connecting (yes/no/[fingerprint])?
prompt. This will cause the connection to continue only if the RSA fingerprint you pasted in (i.e. GitHub's RSA fingerprint) matches the RSA fingerprint of the host to which you are trying to connect, thus ensuring that you are really connecting to GitHub.Note that instead of pasting in the fingerprint you could also manually compare the fingerprints and enter 'y' at the prompt if they match, but this is more prone to human error.
Upvotes: 4
Reputation: 1323125
It does not allow me to use the https protocol for it continues to prompt me to continue connection to a RSA key fingerprint which I do not recognize.
If it does prompt you for an RSA key fingerprint, then you are not using HTTPS anyway. You are using an SSH URL.
Simply answer 'y
' the first time you see this question: that will create/update a %USERPROFILE%\.ssh\known_hosts
file.
Upvotes: 0