Skip to content

Cannot push files because key fingerprint doesn't match my saved SSH key #48086

Answered by airtower-luna
hmkonz asked this question in Profile
Discussion options

You must be logged in to vote

That message is not about your key, it's about the key used to identify the GitHub server. SSH uses authentication with the host key to ensure no-one can trick you into connecting to an attacker's server instead. But SSH can't know if the host key is the right one for that server by itself, so it's asking you to check if that key is correct for github.com (or whichever other server you're connecting to).

GitHub publishes their key fingerprints here: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints

Make sure the fingerprint you're seeing is one of those (depending on the key type), and accept if it is. SSH will remember that for fu…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
3 replies
@hmkonz
Comment options

@queenofcorgis
Comment options

@hmkonz
Comment options

Comment options

You must be logged in to vote
6 replies
@airtower-luna
Comment options

@hmkonz
Comment options

@airtower-luna
Comment options

@hmkonz
Comment options

@danmaster01
Comment options

Answer selected by hmkonz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment