今天在向我騰訊工蜂git管理倉庫推送代碼時出現下面的錯誤:git
$ git push
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 RSA key sent by the remote host is
SHA256:O/rHOxiTfD6BGBM8iwioUtqx8qHDxxd3uYn1hee4/Rc.
Please contact your system administrator.
Add correct host key in /c/Users/Administrator/.ssh/known_hosts to get rid of this message.
Offending RSA key in /c/Users/Administrator/.ssh/known_hosts:7
RSA host key for git.code.tencent.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. 複製代碼
刪除完再推送本地倉庫帶代碼,效果以下:bash
至此,git從新與騰訊工蜂系統創建了一條新的主機鏈接記錄,能夠從新提交代碼啦!ssh
寫在最後:ui
第一次把本身遇到的問題寫出來,可能存在少量紕漏。後續會有更多的總結分享,歡迎各位大牛指正!this