$ git clone git@github.com:henry199101/gitskills.git
Cloning into 'gitskills'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
Cloning into 'gitskills'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
报错
解决:
如果本地连接不到Github,可能原因是 SSH 不一致
1, 删除用户目录下的.ssh 文件夹,删除Github上刚建立的SSH keys
2,在C盘\当

在尝试从远程Git仓库克隆时遇到'fatal: Could not read from remote repository.'错误。问题可能由SSH密钥不匹配引起。解决方案包括删除本地.ssh文件夹及GitHub上的SSH key,然后通过Git Bash重新生成SSH Key,并在GitHub上添加新的密钥。参考文献提供了详细步骤。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



