Git: Permission denied (publickey) fatal - Could not read from remote repository. while cloning Git repository

后端 未结 30 2058
青春惊慌失措
青春惊慌失措 2020-12-12 10:10

I am unable to clone a Git repository, and getting this error:

krishna.soni@KRISHNACHANDRAS /c/Projects $ git clone http://stage.abc.com:10088/pqr
http://<         


        
30条回答
  •  醉酒成梦
    2020-12-12 10:56

    Useful thread and I don't bring much new to the table. The step I took is also part of the description Maxime helpfully points to but some may overlook it. The section is Adding your SSH key to the ssh-agent.

    I had already generated my ssh-key but after a reboot I was unable to clone one of my own repositories.

    I had to start the ssh-agent and add the private key to this agent in order to clone.

    eval $(ssh-agent -s)
    ssh-add ~/.ssh/id_rsa
    

提交回复
热议问题