project git:(jia_dev) git push origin jia_dev
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for ****.*******.com has changed,
and the key for the corresponding IP address 111.111.111.111
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
SHA256:VbXIasdlfj23rj23rjkewjicj323kre23kje1k2je321jwkdsjfcalerre.
Please contact your system administrator.
Add correct host key in /home/guo/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/guo/.ssh/known_hosts:3
remove with:
ssh-keygen -f "/home/guo/.ssh/known_hosts" -R "****.******.com"
ECDSA host key for ****.******.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.
解决办法: 删除家目录下面的known_hosts文件,重新再提交一次即可。
➜ project git:(jia_dev) rm /home/guo/.ssh/known_hosts
➜ project git:(jia_dev) git push origin jia_dev
The authenticity of host ‘XXX.XXX.XXX.XXX’ can’t be established.
ECDSA key fingerprint is ……
Are you sure you want to continue connecting (yes/no)? yes
本文记录了一次使用Git过程中遇到的远程主机密钥变化问题,包括可能存在的DNS欺骗警告及主机身份验证变更警告,并提供了具体的解决步骤,即通过删除本地known_hosts文件并重新推送来解决问题。
2163

被折叠的 条评论
为什么被折叠?



