git push to remote repository “Could not read from remote repository”

后端 未结 4 1073
说谎
说谎 2020-12-03 06:52

I searched for a while but I can\'t find a solution to my Problem.

I have a Server I can connect to via ssh with the username git and a local git reposi

4条回答
  •  死守一世寂寞
    2020-12-03 07:14

    You can also check your SSH identities by doing:

    $ ssh-add -L
    

    I had a similar problem. There was a wrong key in my identities, don't remember why. I just delete all my identities (maybe you will need to add keys again):

    $ ssh-add -D  
    

    Then I did push/pull without problems.

提交回复
热议问题