git命令行克隆报错fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

1.在Windows下找到Users下的Administrator;

2.然后在找到.ssh文件夹;

3.找到known_hosts文件,进去把它里面的清空或者删除这个文件;

4,再去服务器找到克隆的仓库,然后ls -a 查看隐藏文件,会看到.ssh文件夹;进入这个文件夹,找到known_hosts文件,进去把它里面的清空或者删除这个文件。

然后测试就ok了。