git push origin ***遇到问题时的解决办法

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)