Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure DevOps - GIT SSH Authentication - remote: Public key authentication failed [duplicate]

I'm having trouble authenticating via ssh from my MacBook to my Azure DevOps git repository. I have setup my ssh keys as described here https://learn.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate?view=vsts , and am attempting to clone my repo via the ssh url provied in my account.

git clone [email protected]:v3/myorg/my-repo/my-repo

but I keep getting an authentication error.

remote: Public key authentication failed.

like image 351
bingles Avatar asked Nov 28 '22 08:11

bingles


1 Answers

Add IdentitiesOnly yes to ~/.ssh/config

It is incredibly annoying because Microsoft assumes that everyone is an idiot and must have supplied the wrong public key. They just ignore all the people reporting this problem.

Also, I believe this question is a duplicate of the following:

`ssh -T` to VSTS(Azure Devops) authenticates successfully, but `git clone` fails

like image 57
Jack Davidson Avatar answered Dec 04 '22 06:12

Jack Davidson