Authentication failed importing VSTS Git repo into BitBucket - azure-devops

I'm attempting to move my Git repo from VisualStudio.com (VSTS) to BitBucket, and I'm working through the BitBucket UI and choosing to import the repo. I've supplied the repo url in the following format:
https://MYCOMPANY.visualstudio.com/DefaultCollection/_git/MYREPO
And I supply my VisualStudio.com login credentials in the fields below, but I'm getting an authentication error as per the screenshot. Any ideas on what to do?

Use a personal authentication token. Provide the PAT as your username and leave the password blank.

Related

Not able to bring Bitbucket repo to azure devops

I have generated the app password and took the clone URL correctly, although azure devops seems to be not recognizing. Please help , below are the screenshots with error
I can reproduce your issue:
To clone a repository, the app password should at least have
Repositories -> Read premission:
When importing the repository, the username should be your account
name rather than app password name.

Authentication error cloning Azure Devop's repo in OS X

I have created a project in my Azure DevOps but when I try to clone it with Visual Studio Code or SourceTree it asks me for the password and the password I use is the one associated with my account, which is the Azure tenant administrator account with which I have logged into Azure DevOps and with which I have created the project.
but he always rejects me
I have the latest git version installed in OSX
Any idea, please?
Thanks
This should be related to the Git credential in your local, try to remove them and try again.
If it still does not work, you could use PAT(personal access token) to clone the repo, it should work.
git clone https://<Your-PAT-Here>#dev.azure.com/orgname/proname/_git/reponame

Cannot access Git Organization/repository from AzureDevOps (Build Pipeline)

I have created an organization inside GitHub and moved my personal repo to the organization repo. Then I have added service connection with Git and also did GitHub connection inside azure DevOps. Now I would like to access my organization repo from azure build pipeline but it is not listing my organization repo and it only shows personal accounts repos.
It is saying "This setting is required". But I have added git connection and also service connection.
Accepting your help and suggestion.
Please check whether the selected service connection is to a GitHub-InstallationToken. When I choose this type of service connection, I reproduce this problem.
In addition , you can try to create a new service connection authorized with GitHub personal access token to see if this problem still exists.

Jenkins giving Permission denied (publickey) on adding github repo

I am using Jenkins Github plugin and was using public/private key for one repo, which was working alright. But I got problem when I added another repo, because github doesn't allow sharing public key across multiple repos.
So i integrated jenkins using github token (in Jenkins > manage > configure system and service in github) and removed private/public keys in jenkins server and github. Now when I add repo, I get Permission denied (publickey) error (image attached)
How do i integrate multiple github repos with my jenkins server?
Found the problem. There is key attached to account of user who's token was added to jenkins. My assumption was it should not have mattered as token was added. But that's not correct.
Added private keys of user who's token was used, in jenkins server and everything returns to normal
Got hint from Authenticate Jenkins CI for Github private repository

How to give the push access to github repo without giving the github account credentials?

I wrote the tool which use the one github repo as a cloud storage.
I need to give the write (push) access for this tool to one github repo, but I do not want to use the github user credentials (user name and password), because anyone can use it to logon to github and change the credentials or delete the repo.
You can generate an OAuth authorization for your specific app.
See an example here: it supposed you have registered you app in your account.