由于git遠(yuǎn)程服務(wù)端更改賬號或密碼,導(dǎo)致git客戶端無法上傳,出現(xiàn)( WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! )
phpstorm更換git密碼
打開phpstorm終端terminal
git pull origin master
情況一:出現(xiàn)輸入密碼:更新即可
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文件,
再次連接就彈出密碼框啦