Cannot push files because key fingerprint doesn't match my saved SSH key #48086
-
Problem with SSH key I created a new SSH key and saved it to my account, deleting my old one. Now when I try to push my files to a repo, I'm getting this error: The authenticity of host 'github.com (140.82.112.4)' can't be established. Please make sure you have the correct access rights The key fingerprint shown above does not match the SSH key I saved. How do I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 28 comments 42 replies
-
Hi @hmkonz, The GitHub Community on Discussions is a space for all GitHub users to come and discuss ideas and projects. Your duplicate post was removed because it contained content that violates our Community Code of Conduct, including posting the same comment in multiple places. As a result, we have removed the duplicate post, and we ask that you no longer cross-post. For additional guidance, please review our Community on Discussions Code of Conduct and GitHub’s Terms of Service. |
Beta Was this translation helpful? Give feedback.
-
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 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 future connection. If the key fingerprint you see is not on the list, figure out who's messing with your network. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I am new to GitHub and need to connect with other people on here who can code and make repositories on here and work with them to expand my already existing organization. I would love the experience and expertise of the men and women on here. Thank you very much |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
-
I am okay. My mom and sister keep messing with my phone they don't want me to succeed. So I restarted my phone and had to delete some bad stuff on my phone. I apologize for the inconvenience. I'm trying. |
Beta Was this translation helpful? Give feedback.
-
Nice |
Beta Was this translation helpful? Give feedback.
-
Telefonumun internet bağlantısıyla ilgili sorunlar yaşıyorum. SSH'yi nasıl
değiştireceğimi tam olarak anlamıyorum ancak bunu internette araştıracağım.
Telefonumda sorunlar vardı ve kötü şeyler vardı. Bunları silmek zorunda
kaldım. Rahatsızlıktan dolayı özür dilerim. Konuşurken her şeyi tekrar
ayarlamaya çalışıyorum... SSH'yi değiştirmek dışında yapmam gereken başka
bir şey var mı? Size göndermem gereken herhangi bir bilgi veya size
göndermem gereken bir şey var mı?
Katelyn Halsell
…On Sat, Apr 12, 2025, 1:40 PM Bilal jani ***@***.***> wrote:
Nice
—
Reply to this email directly, view it on GitHub
<#48086 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BP6222SLZGP452KBNJXIEEL2ZFM2BAVCNFSM6AAAAABPBEDKPOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEOBRGUYDQMY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I'm good how are you?
…On Sun, Mar 9, 2025, 6:00 PM Azad8687 ***@***.***> wrote:
How are you ?
—
Reply to this email directly, view it on GitHub
<#48086 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BFDUZL4PFEINYTAGKLFD6D32TS2W3AVCNFSM6AAAAABPBEDKPOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENBUGI2TINY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
<title>7 Coisas Que Você Deve Evitar Se Quiser Ser Multimilionário</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
Descubra os 7 Erros Fatais Que Te Impedem de Ser MultimilionárioO guia definitivo baseado na experiência real de um empreendedor que saiu do zero e conquistou a liberdade financeira
|
Beta Was this translation helpful? Give feedback.
-
Jddndmdd |
Beta Was this translation helpful? Give feedback.
-
You're seeing the following error because your system doesn't recognize GitHub's SSH host key yet (which is different from your personal SSH key): The authenticity of host 'github.com (140.82.112.4)' can't be established... This is normal the first time you use SSH to connect to a host (like GitHub) on a new machine or after clearing your known hosts. How to Fix ItYou must confirm GitHub’s SSH fingerprint only once to trust the connection. Step-by-step:When prompted, type: yes Git will save GitHub’s SSH host key in your ~/.ssh/known_hosts file. Now try:
🛡️ Why This Happens But GitHub's host key (their identity) isn't saved yet on your machine. Git prevents man-in-the-middle attacks by asking you to verify it. 🔐 Verified GitHub Host Fingerprints ED25519 (used in your prompt):
This matches the one you got — it's safe to continue.
You can fix it by manually clearing the old record (optional) and retrying:
Then try again:
Type yes when prompted. |
Beta Was this translation helpful? Give feedback.
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…