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 RSA key sent by the remote host is SHA256:SLTf2runF49gDeSWKN0bPvph65ZD6cR8Ge7PwyKLwPQ. Please contact your system administrator. Add correct host key in /c/Users/wxm/.ssh/known_hosts to get rid of this message. Offending RSA key in /c/Users/wxm/.ssh/known_hosts:6 Host key for [gitlab.saicstack.com]:8022 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-27 12:25:31 浏览: 190
Nasty-Teacher:[ICLR 2021 Spotlight Oral]“不可蒸馏
这个问题可能是由于 SSH 认证和主机密钥验证失败导致的,可能是由于主机密钥已更改,或者存在中间人攻击。您需要联系系统管理员来验证 RSA 密钥指纹,并在 known_hosts 文件中添加正确的主机密钥以解决此问题。另外,请确保您具有正确的访问权限,并且仓库确实存在。您可以通过以下步骤解决此问题:
1. 打开终端并输入以下命令:`ssh-keygen -R [gitlab.saicstack.com]:8022`,这将从 known_hosts 文件中删除指定的主机密钥。
2. 然后重新连接到 GitLab 服务器,并接受新的主机密钥。
3. 如果仍然无法连接,请尝试删除 known_hosts 文件并重新连接到服务器,这将自动创建新的 known_hosts 文件。
希望这能帮助您解决问题!
阅读全文