The authenticity of host 'github.com (192.30.253.113)' can't be established.


  在初始化git之后(git init),同時在github建立好倉庫之后,本地也新增了ssh kye(ssh-keygen -t rsa -C ‘mail address’),同時也在本地新增了遠程倉庫(git remote add origin github地址), 但是在git push的時候出現錯誤

  

The authenticity of host 'github.com (192.30.255.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? 

這里你直接回車的話會出現驗證失敗

Host key verification failed.
fatal: Could not read from remote repository.

 

驗證失敗。谷歌了一下,原來是本地少了 know_host文件,只要在剛剛那個位置輸入yes就可以了,而不是回車(回車慣了)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM