【发布时间】:2018-06-22 21:38:30
【问题描述】:
所以我将我的公共 ssh 密钥添加到了 git 存储库中。我已将私钥添加到我的 /c/Users/totty/.ssh/ 中。
当我运行ssh -vT git@github.com 时,它显示Hi X! You've successfully authenticated, but GitHub does not provide shell access.
当我运行git push origin 时,我得到Permission to * denied fatal: Could not read from remote repository
这个 github 有什么问题?我无法从 cmd、git 扩展中推送。但它可以从 Windows 的 github 运行...
删除我的 ssh 密钥并运行 ssh -vT git@github.com 后,我得到 debug1: No more authentication methods to try.。
还有一件奇怪的事情......如果你看一下圈出来的文字,那不是我的用户名或电子邮件。我什至检查了我的 git 配置并且无处可去。来自哪里?我的意思是gs11118
【问题讨论】: