重裝系統用自己之前生成的ssh key去clone項目的時候會提示"此主機的指紋不是由putty注冊的"。
其中有段
The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it
出現這種問題有兩種辦法clone自己的項目下來。
第一種:
不通過ssh驗證clone。直接用https clone,這樣只需要輸入帳號密碼即可。然后后面pull時候用ssh key就不會有之前的提示了
第二種:
執行對應的plink host。
然后再執行對應的plink host,host為git的域名路徑,然后點y
plink git@git.oschina.net:codemax
然后輸入y確認即可。
這樣后再去clone push就正常了。