【发布时间】:2014-02-27 23:48:38
【问题描述】:
所以我只花了大约 4 小时试图让一个在 Windows 上的 SSH URL 下运行的 repo,我快到了,但我遇到了这个奇怪的问题。
我可以使用
git push origin master
git fetch origin master
ssh git@github. #tells me authentication is successful but shell access is not allowed
以及所有本地命令。但是,当我尝试执行 git pull 时,我得到:
-bash-4.1$ git pull
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
-bash-4.1$
我在%HOME%/.ssh 下确实有id_rsa 和id_rsa.pub,并且公钥已添加到我的GitHub 帐户中。我的 git URL 也是正确的。
编辑
-bash-4.1$ git --version
git version 1.8.5.2.msysgit.0
【问题讨论】:
标签: git github cygwin msysgit mintty