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: 8 comments 12 replies

Comment options

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

@queenofcorgis
Comment options

@hmkonz
Comment options

@Azitaalipoor

This comment was marked as off-topic.

@Azitaalipoor

This comment was marked as off-topic.

Comment options

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

@airtower-luna
Comment options

@hmkonz
Comment options

@airtower-luna
Comment options

@hmkonz
Comment options

Answer selected by hmkonz

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as spam.

@poriapaccini

This comment was marked as spam.

@poriapaccini

This comment was marked as spam.

Comment options

You must be logged in to vote
0 replies

This comment was marked as spam.

This comment was marked as off-topic.

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