Git SSH public key authentication failed with git on Azure DevOps

后端 未结 10 1585
醉酒成梦
醉酒成梦 2021-01-04 03:10

I am trying to push a git repo from PowerShell into an Azure DevOps repo, and I keep getting different auth errors when trying to push it.

I am hoping somebody can sh

10条回答
  •  不知归路
    2021-01-04 03:47

    I have the same problem.

    My solution was:

    The path while I try to use sudo git clone... doesn't have permission to access my public and private key location: \home\localuser\.ssh\....

    To solve this, I change ownership of the destination path to the same user:group ware my keys are stored and avoid to use sudo git clone...., now im using git clone without sudo and everything works.

    I hope you understand...

提交回复
热议问题