所以我只花了大约 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$
我确实有id_rsa
,并且公钥已添加到我的 GitHub 帐户中id_rsa.pub
。%HOME%/.ssh
我的 git URL 也是正确的。
编辑
-bash-4.1$ git --version
git version 1.8.5.2.msysgit.0