-
Select Topic AreaQuestion BodyHello, since a couple of minutes, git is throwing me a warning for all my Is this an intended change from GitHub or should I investigate my network security ?! Thanks in advance ! |
Beta Was this translation helpful? Give feedback.
Replies: 51 comments 146 replies
-
|
I too saw the unexpected host key ~15 minutes before you (around 2023-03-24T02:57:30Z), it went away a few minutes later. I failed to get the IP address of the endpoint I was talking with. |
Beta Was this translation helpful? Give feedback.
-
|
Same here, seen from three different hosts in different parts of the US. No longer occurring. |
Beta Was this translation helpful? Give feedback.
-
|
Saw this an hour ago and seeing it again now. |
Beta Was this translation helpful? Give feedback.
-
|
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/ |
Beta Was this translation helpful? Give feedback.
-
|
👋 Hello, I can confirm we have recently changed our public RSA SSH host key used for GitHub.com. You may receive a warning message which is expected for users that had our previous key verified. Please refer to our post on the GitHub Blog for more information and remediation steps: https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/ |
Beta Was this translation helpful? Give feedback.
-
|
After I followed the instructions to remove the old RSA key for 'github.com', In this case, I think the old
* Github seems to have given ECDSA (or ED25519) preference in the ssh key negotation, causing ECDSA/ED25519 to become the default key type when you connect via SSH after removing the old RSA key fingerprint. |
Beta Was this translation helpful? Give feedback.
-
|
@Akash1134 When are you guys going to fix the Github Actions runners? Our ubuntu builds are failing with the warning when cloning the repo: |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Removed the old host key and added the new one, still getting
|
Beta Was this translation helpful? Give feedback.
-
|
I am disappointed in GitHub's failure to engage in sensible security precautions here. Rotating host keys like this is dangerous, because it encourages people to think that it's normal to ignore the ssh warning that your connection may have been compromised. THIS IS A PREVENTABLE PROBLEM. The openssh protocol extensions exist to make this work sensibly, sanely, securely. It's been nearly a decade. GitHub -- please read this article: https://lwn.net/Articles/637156/ Implement hostkey rotation. Advertise multiple keys, so that in the future, if you have to decommission a single key, the others still work without user errors and without telling people to ignore scary warnings. |
Beta Was this translation helpful? Give feedback.
-
|
Removing the RSA host key causes a new key-exchange into ECDSA. Looks like they updated the server to defaults to make RSA last on the key negotiating list: The issue now is if you connected before this with rsa, the ECDSA may have already been added, so you have two keys for the same IP. Here's the workaround with regard to security: First go here and pray to god that GitHub system repositories didn't get compromised: https://github.com/github/docs/blob/main/content/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints.md Then run: This gives you extended debug information for what ssh is trying to do. The juicy bits are the last few lines. Look to see that the keys being negotiated match the fingerprints shared in the github doc above. In my case, I see: I confirmed the server host key matches the fingerprint displayed. Then I run this command to remove the offending ip: And then run it again, and if the new host lookup matches the same ip... ssh now works. Otherwise...repeat from the top and verify fingerprint for the new ip. It happened to me for 192.30.255.113 and 192.30.255.112. Posting your private key publicly is a fucking colossal fuck-up. |
Beta Was this translation helpful? Give feedback.
-
|
This is the only thing that worked for me in the end, including the |
Beta Was this translation helpful? Give feedback.
-
|
Hello. After updating the host key, I do not see the commit statistics for several days in my personal account. The commits were made in my name and email , but they still didn't get into the account statistics. What to do? |
Beta Was this translation helpful? Give feedback.
-
|
Are there plans to update all of the ssh services to be under github.com? EG just did |
Beta Was this translation helpful? Give feedback.
-
|
Can confirm. We've replaced the keys on Friday, everything appeared to be working fine but we've been having all kinds of (ongoing) issues throughout the day today. |
Beta Was this translation helpful? Give feedback.
-
|
I went through this last week and got it all working again after restarting my machine. But as of today, it is back to giving me the same messages when I try to perform a pull or push. I don't think the instructions in that blog post that has been linked to umpteen times completely addresses this issue. |
Beta Was this translation helpful? Give feedback.
-
|
@benjaminkohl I think everyone has their own set of issues. For example, I could not connect this morning at 8am when Github was down, but a little while later when githubstatus.com stated that everything was up and running again, I tried connecting, and I could. And later, i did not even have the "bypass" error I had been getting since I made the fix on Friday. So this is definitely NOT a "one size fits all" situation. And what is strange is that githubstatus.com right now is stating that all systems are operational, when that probably is not the case. |
Beta Was this translation helpful? Give feedback.
-
|
I removed completely the |
Beta Was this translation helpful? Give feedback.
-
|
That is what I did too. Removed GitHub record from known_hosts and did a pull again. It worked.
Sent with Spark
…On 28 Mar 2023, 1:31 PM +0530, Oluwapelumi Egunjobi ***@***.***>, wrote:
Same with me
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
This is still not working ! |
Beta Was this translation helpful? Give feedback.
-
|
I know, this is off-topic but I wanted to fix your typing on the title. GitHub doesn't have a gender. 😅 |
Beta Was this translation helpful? Give feedback.
-
|
does the paragraph where Github put their new key have a missing CRLF at the end? |
Beta Was this translation helpful? Give feedback.
-
|
Hey, can someone tell me please if it's ok to see one of github ip addresses on this website? https://www.ipqualityscore.com/free-ip-lookup-proxy-vpn-test/lookup/140.82.121.3 Or it's really fraud? |
Beta Was this translation helpful? Give feedback.
-
|
After receiving the same Afterward, I also saw the IP Address error others have mentioned: I didn't enter yes on the prompt, and instead was able to resolve the issue by adding all three of the ssh keys referenced by github in their Authentication Documents into the My guess is that the issue was because I was actually using the |
Beta Was this translation helpful? Give feedback.
-
|
I thought my connection was being intercepted. Whew. |
Beta Was this translation helpful? Give feedback.
-
|
It would have been much appreciated if an official email was sent to notify us of this update. |
Beta Was this translation helpful? Give feedback.
-
|
Hello. |
Beta Was this translation helpful? Give feedback.
-
|
Has this happened again? Me and several other users are getting the same error again |
Beta Was this translation helpful? Give feedback.
-
|
if you use mac (i do not if it is right way for linux or windows) : |
Beta Was this translation helpful? Give feedback.
👋 Hello, I can confirm we have recently changed our public RSA SSH host key used for GitHub.com.
You may receive a warning message which is expected for users that had our previous key verified. Please refer to our post on the GitHub Blog for more information and remediation steps: https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/