git使用时出现错误IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ED25519 key sent by the remote host is SHA256:5L0hh47XcaLx2Rsu4HVtZcByYnX9X43m91xFV2TrWv4. Please contact your system administrator. Add correct host key in /c/Users/liam.yuan.JOYMED-TECH/.ssh/known_hosts to get rid of this message. Offending ED25519 key in /c/Users/liam.yuan.JOYMED-TECH/.ssh/known_hosts:1 Host key for asu1.joymed-tech.com has changed and you have requested strict checking. Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists...
时间: 2024-04-15 09:28:36 浏览: 760
这个错误通常是由于远程主机的 SSH 密钥发生了变化,导致 Git 无法进行安全连接。为了解决这个问题,你可以尝试以下几个步骤:
1. 打开终端或命令行窗口。
2. 进入到你的项目目录。
3. 运行以下命令来清除旧的主机密钥:
```
ssh-keygen -R <hostname>
```
其中 `<hostname>` 是出现错误的主机名或 IP 地址。
4. 运行以下命令来重新添加主机密钥:
```
ssh-keyscan <hostname> >> ~/.ssh/known_hosts
```
同样,`<hostname>` 是出现错误的主机名或 IP 地址。
5. 再次尝试执行 Git 命令,看看问题是否解决了。
如果问题仍然存在,可能是由于其他网络或配置问题导致的。你可能需要与系统管理员联系以获取进一步的支持。
阅读全文
相关推荐
















