情景
github上面建了个测试仓库,想在Windows10 WSL(windows subsystem linux,我安装的是ubuntu20)执行 git push -u origin master,将本地仓库与github仓库关联,操作失败。
报错
The authenticity of host 'github.com (192.30.255.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
原因和解决办法
Git bash与 WSL 冲突了,需要将Git bash卸载,再在WSL执行git访问远程仓库就ok了。