javascript:void(null)gitLab---Host key verification failed.
公司用的是GitLab,突然發現pull和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 ECDSA key sent by the remote host is
SHA256:fyz9pKs5X55RS646N75q+q2/MUVXfl82TmKO2P52+do.
Please contact your system administrator.
Add correct host key in /Users/zhaolu/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/zhaolu/.ssh/known_hosts:1
ECDSA host key for git.dev.jhb.net has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.```
然後管伺服器的同事告訴我,**伺服器的IP變了**。
解決辦法是**刪除known_hosts檔案**(具體路徑上面有提示)。
zhaoludeMacBook-Pro:test zhaolu$ rm /Users/zhaolu/.ssh/known_hosts //刪除hosts
zhaoludeMacBook-Pro:test zhaolu$ ls /Users/zhaolu/.ssh/known_hosts
ls: /Users/zhaolu/.ssh/known_hosts: No such file or directory //刪除乾淨了
zhaoludeMacBook-Pro:test zhaolu$ git pull upstream master //拉取程式碼
The authenticity of host 'git.dev.test.net (60.205.126.31)' can't be established.
ECDSA key fingerprint is SHA256:fyz9pKs5X55RS646N75q+q2/MUVXfl82TmKO2P52+do.
Are you sure you want to continue connecting (yes/no)? yes //這裡填yes
Warning: Permanently added 'git.dev.test.net,60.205.126.31' (ECDSA) to the list of known hosts.
From git.dev.test.net:iOS/test
- branch master -> FETCH_HEAD
- [new branch] master -> upstream/master
Already up-to-date. //成功拉取程式碼```
網上還有其他方法,沒試,不知效果,本方法已親測可供大家參考。
相關文章
- Mac SSH 連線出現 Host key verification failed. 錯誤解決MacAI
- ssh連線遠端伺服器出現Host key verification failed. lost connection問題的解決伺服器AI
- JavaScript void 運算子JavaScript
- [Javascript] Replace undefined with void 0JavaScriptUndefined
- 記錄一個生產環境小錯誤。SSH連線時,出現提示遠端密碼重置的報錯【Host key verification failed.】密碼AI
- vscode中Git: host key verification failed的解決辦法VSCodeGitAI
- [sublime xftp外掛] Host key verification failed ,錯誤處理FTPAI
- SSH 登入失敗:Host key verification failed 的處理方法AI
- a標籤下的href="javascript:void(0)"起到了什麼作用?說說你對javascript:void(0)的理解?JavaScript
- 前端戰五渣學JavaScript——void 運算子前端JavaScript
- Hashtable/HashMap與key/value為null的關係HashMapNull
- 來學習typescript 吧! --1基礎型別(string、number、 boolean、void 、Null、undefined )TypeScript型別BooleanNullUndefined
- 【JavaScript】奇怪的知識void 0 === undefined 為 trueJavaScriptUndefined
- [Javascript] Reflect vs obj[key]JavaScriptOBJ
- JavaScript undefined與null區別JavaScriptUndefinedNull
- javascript中null是什麼JavaScriptNull
- JavaScript基本概念整理(null、undefined)JavaScriptNullUndefined
- JavaScript中的“undefined、null”區別?JavaScriptUndefinedNull
- 你知道void和Void的區別嗎
- NSObject +(void)load 和+(void)initialize 方法的理解Object
- C語言知識彙總 | 56-C語言NULL空指標以及void指標C語言Null指標
- JavaScript中0, "", null, false, undefined的區別JavaScriptNullFalseUndefined
- a===void 0 作用
- JavaScript基本資料型別之undefined和nullJavaScript資料型別UndefinedNull
- JavaScript 05筆記(null、undefined、NaN的區別)JavaScript筆記NullUndefinedNaN
- TypeScript void 型別TypeScript型別
- 【SQL】15 SQL 約束(Constraints)、NOT NULL 約束、UNIQUE 約束、PRIMARY KEY 約束、FOREIGN KEY 約束、CHECK 約束、DEFAULT約束SQLAINull
- 關於火狐和IE下href=”javascript:void(0)”相容性的問題JavaScript
- 請解釋下href="javascript:void(0)"和href="#"的區別是什麼?JavaScript
- 24·iOS 面試題·+(void)load; +(void)initialize; 有什麼用處?iOS面試題
- typedef void (*Fun) (void) 的理解——函式指標——typedef函式指標函式指標
- 寶塔:續簽SSL證書報錯Verification failed, domain name resolution error or verification URL cannot be accessed!AIError
- int存放到void指標指標
- Deep Embedding Learning for Text-Dependent Speaker Verification
- 【NULL】Oracle null值介紹NullOracle
- CRS-4124: Oracle High Availability Services startup failed.OracleAI
- Linux 報錯Certificate verification failed: The certificate is NOT trusted.LinuxAIRust
- MySQL中IS NULL、IS NOT NULL、!=不能用索引?胡扯!MySqlNull索引
- mysql中key 、primary key 、unique key 與index區別MySqlIndex