1. 程式人生 > >git---如何解決The authenticity of host 'github.com (192.30.255.112)' can't be established.

git---如何解決The authenticity of host 'github.com (192.30.255.112)' can't be established.

新生成金鑰的時候,git clone或者push的時候,經常會報這樣的錯誤:

The authenticity of host 'github.com (192.30.255.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.

Google之後明白,少了一個known_hosts檔案,本來金鑰檔案應該是三個,現在是兩個,便報了這樣的錯誤,此時選擇yes回車之後,便可,同時生成了缺少了的known_hosts檔案:

Are you sure you want to continue
connecting (yes/no)? //輸入yes,回車