Sometimes you happen to change your remote server settings which you use for git. Then you try to pull and push with git and get the following error:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is 28:24:ac:e6:84:e3:16:26:c0:65:66:d7:51:8f:6a:6c. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending key in /root/.ssh/known_hosts:1 RSA host key for 192.168.1.152 has changed and you have requested strict checking. Host key verification failed. fatal: The remote end hung up unexpectedly
Reason: the remote system changed, so the encryption key is also changed, so the local stored key on the failure, the need to store the key, key storage location in the/$HOME/.ssh/known_hosts
Solution: delete the /$HOME/.ssh/known_hosts file in the last row (I have a line, just delete it), and then pull or push, enter the password again can.
This will fix the above problem !