重装系统用自己之前生成的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就正常了。