It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can't clone repo although connected through SSH

Hello all, 

I'm wondering if you could give me some guidance. I have an issue where Sourcetree is connected through SSH and find all of my private repos on BitBucket but for some reason, I can not clone them. I get an error "This is not a valid source path/URL". 

SSH Connected to account.png

But when selecting clone on any of the Repos shown behind I get the error above.

Any ideas? I have followed the tutorial on the BitBucket website and have set up all of the SSH Keys. I have wondered if it is anything to do with the PROXY we are behind at work, but when adding the proxy in to the settings, the account fails to Authenticate.

Cheers in advance 

2 answers

0 votes
minnsey Atlassian Team Jun 20, 2018

Hi

Is there any additional information behind the Details button when the clone fails?

So I managed to clone the repo yesterday by changing from SSH to HTTPS but today, This is no longer working. When trying to commit or clone I am now seeing the following.

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://demonLaMagra@bitbucket.org/demonLaMagra/bray.git
Output:
Error: remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
fatal: Authentication failed for 'https://demonLaMagra@bitbucket.org/demonLaMagra/bray.git/'

Can you clone directly by click "Clone" at the stop and then providing the SSH url to the repo?

Managed to yesterday by changing from SSH to HTTPS but today this not working either.

Now get the following when cloning or committing.

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://demonLaMagra@bitbucket.org/demonLaMagra/bray.git
Output:
Error: remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
fatal: Authentication failed for 'https://demonLaMagra@bitbucket.org/demonLaMagra/bray.git/'

It seems to not be accepting your user name or password, validate you can access bitbucket.org with the same credentials.  If you are using OAuth, open the source tree preferences / tools and go to your account / authentication tab and refresh your oAuth token. 

Thanks for the response. I have done this and everything works fine in regards to logging in and finding all of my remote repositories, but I can not seem to clone or push. I still get the same error message as before.

minnsey Atlassian Team Jun 27, 2018

Hi 

Try explicitly logging out of the Bitbucket website and then log back in. Its possible that too many failed logins somewhere along the way have partially locked you account. 

To be really thorough you can also deleted any 'git:' prefixed entries for Bitbucket in the Windows Credential Manager, this will force git to re-prompt you for credentials before doing a fetch/pull/push

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,895 views 0 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you