The ability to push, pull, but not pull

So, I just spent ~ 4 hours trying to get the repo to work under the SSH URL on windows, I'm almost there, but I ran into this strange problem.

I can use

git push origin master
git fetch origin master
ssh git@github. #tells me authentication is successful but shell access is not allowed

and all local teams. However, when I try to do git pull, I get:

-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$

I have id_rsa, and id_rsa.pubin the section %HOME%/.ssh, and the public key is added to my account GitHub. My git url is also correct.

EDIT

-bash-4.1$ git --version
git version 1.8.5.2.msysgit.0
+3
source share
3 answers

The problem may persist, because gitthey cygwinhave different directories .ssh.

ssh git@github, , .ssh cygwin, git pull, id_rsa git bash .ssh.

. = > ssh clone not cloning repo git

+2

:

config cygwin64/home/<username>/.ssh

IdentityFile <path to your private key>

+2

Perhaps you will pull from another place?

Try:

git pull origin master
+1
source

All Articles