我已经获得了对我们的生产服务器的root访问权限,并且我想将最新版本的git部署到服务器,但是当我在我想要更新的文件夹上"git pull"时,我遇到了以下错误.
我已经浏览了一下,但无法找到明确的答案.
登台服务器在同一台计算机上运行,但只是在不同的文件夹中,当我pull
在该文件夹上时,一切正常.
对于Linux,我不是很有经验,所以请帮我解决一下如何修复的明确答案:-)
否则我可以访问我需要的任何东西
ps这在过去有效,所以我假设它与SSH密钥有关
错误:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The ECDSA host key for www.site.org has changed, and the key for the corresponding IP address x.x.x.x is unknown. This could either mean that DNS SPOOFING is happening or the IP address for the host and its host key have changed at the same time. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 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 ECDSA key sent by the remote host is ************* Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /root/.ssh/known_hosts:1 remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R gitlab.site.org ECDSA host key for gitlab.site.org has changed and you have requested strict checking. Host key verification failed.
fedorqui.. 33
在日志中,您会看到以下文本:
(...) Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /root/.ssh/known_hosts:1 remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R gitlab.site.org ECDSA host key for gitlab.site.org has changed and you have requested strict checking. Host key verification failed.
所以这是执行在那里建议的命令的问题:
ssh-keygen -f "/root/.ssh/known_hosts" -R gitlab.site.org
+1处理此问题的最佳方法.另一种方法是在`〜/ .ssh/known_hosts`中删除gitlab.site.org的条目.@Richard,也试图调查为什么密钥已经改变,因为大多数时候他们不应该改变. (3认同)
abhiklpm.. 16
视窗:
转到/Users/Abhilash/.ssh/known_hosts
并删除其中的内容并保存.
Linux/Mac:
去 ~/.ssh/
nano known_hosts
删除内容并保存 ctrl+O
注意: 您将被要求在再次推送时保存密钥.
在日志中,您会看到以下文本:
(...) Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /root/.ssh/known_hosts:1 remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R gitlab.site.org ECDSA host key for gitlab.site.org has changed and you have requested strict checking. Host key verification failed.
所以这是执行在那里建议的命令的问题:
ssh-keygen -f "/root/.ssh/known_hosts" -R gitlab.site.org
视窗:
转到/Users/Abhilash/.ssh/known_hosts
并删除其中的内容并保存.
Linux/Mac:
去 ~/.ssh/
nano known_hosts
删除内容并保存 ctrl+O
注意: 您将被要求在再次推送时保存密钥.