For login to a repository stored in Project SSH is required?

Hi,

I have many repositories (both Git and Mercurial).
I created for the first time a repository in a Project.

Now, using SourceTree I can conenct (pull/push) to all the repositories without any problems but not to the repository inside the project. 
The message window asking for the SSH key appear all the time.

I've done some commits to this repository probably with another PC.
So probably I have set in some way a SSH Key but now with this pc I'm stuck onm the SSH key information and I prefer to not use it.

I checked all the settings for a "classic" repository and for this "project" repository. They are al the same.
The only difference is the .git url,
"classic": SSH git@bitbucket.org:<my-user>/<my-repository>.git
"project": SSH git@bitbucket.org:<project-team>/<my-repository>.git

So, my question is:
Is mandatory to use a private/public SSH key for repositories inside a project?
If not, why I cannot push to the "project" repository using the classic way (SourceTree manage the credentials and does not ask me nothing).

I'm the creator and owner of all the repositories.
I use Windows.

Thanks,

Alessandro

 

 


Why for 

 

 

 

 

 

 

1 answer

0 vote

You can use either HTTPS or SSH URLs to work with repos in projects.

I switched to HTTPS and the url become like expected, with my user. Using that in the repository settings soolved my problem.

I'm not sure but I don't remember to have never changed the default url, maybe SSH is now the default and I didn't noticed it. 

Aniway using HTTPS works for me. 

Thanks.

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,997 views 1 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you