由于git远程服务端更改账号或密码,导致git客户端无法上传,出现( WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! )
phpstorm更换git密码
打开phpstorm终端terminal
git pull origin master
情况一:出现输入密码:更新即可
gitlap@ip's password:
Permission denied, please try again.
gitlap@192.168.2.100's password:
From 192.168.2.100:/usr/local/server/project
* branch master -> FETCH_HEAD
Already up to date.
情况二:报错
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:wKjxNaDf1npDjyfXsZJGjUDxwNRjSppTPZLfu4DDr5s.
Please contact your system administrator.
Add correct host key in /c/Users/lap/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /c/Users/lap/.ssh/known_hosts:1
ECDSA host key for 192.168.2.100 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.
注意查看(Add correct host key in /c/Users/lap/.ssh/known_hosts to get rid of this message.)
取中间的/Users/lap/.ssh/known_hosts路径,此路径是存储密码文件,删掉known_hosts文件,
再次连接就弹出密码框啦