Lulzim Fazlija
Lulzim Fazlija

Reputation: 885

can't connect to azure devops using ssh even after uploading my public key to azure

I have the ssh keys stored under ./ssh director, uploaded my public ssh id_rsa.pub in azure devops and now when i try to do git clone ssh it says:

The Git repository with name or identifier xxx does not exist or you do not have permissions for the operation you are attempting. fatal: Could not read from remote repository.

What else one should be doing except create a pair of ssh keys upload public key to azure in the project and try to clone it?

Also could it be possible that same ssh key is used under another project in azure?

thanx

Upvotes: 0

Views: 1391

Answers (1)

Hugh Lin
Hugh Lin

Reputation: 19471

According to this error, I give the following troubleshooting.

  1. Please make sure you have sufficient permissions on the repository. You can check by Project Settings->Repositories->Security

enter image description here

  1. Please check if your access level is Stakeholder under Organization Settings->User. The stakeholder have no permission to clone a repo.

In addition , you can follow this document and here is a case with some solutions you can refer to .

As a workaround , you can try to clone with HTTPS url and authenticate access with PAT. This is the most effortless solution at hand. Simply switch to cloning from the HTTPS path for your Git repository.

Upvotes: 0

Related Questions