GitHub Desktop连接失败fatal: Could not read from remote repository.

GitHub Desktop连接失败fatal: Could not read from remote repository._第1张图片

 

Authentication failed. Some common reasons include:

- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.

GitHub Desktop突然无法拉取代码,但是本地git bash命令行提交、更新正常,根据上面的报错提示逐条检查都不行,重新生成密钥配置`ssh-agent`也不行,去官网查看ssh连接教程全部方法都试一遍也不行。

最后研究GitHub Desktop的设置,把推荐的系统openSSh选项去掉,能正常拉取代码了

GitHub Desktop连接失败fatal: Could not read from remote repository._第2张图片

 

你可能感兴趣的:(github)