xxxxxxxxxx
navigate to .ssh (cd ~/.ssh)
rm known_hosts
In my case I was getting this when trying to push a new branch to github
xxxxxxxxxx
ssh-keygen -R <host>
Open your terminal and navigate to ~/.ssh/known_hosts grab the IP address for github or whichever host is giving you issues and use that as <host>
xxxxxxxxxx
[root@localhost ~]# ssh-keygen -R 192.168.2.151
#將此有問題的移除,下次登入就可正常。