Git SSH public key authentication failed with git on Azure DevOps

后端 未结 10 1715
醉酒成梦
醉酒成梦 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:26

    This worked for me

    adding a config file in ~/.ssh/

    and adding these lines

    Host ssh.dev.azure.com
    IdentityFile ~/.ssh/my_ssh_private_key
    IdentitiesOnly yes
    

    This link by @wcoder helped

提交回复
热议问题