Trouble with SSH and Bitbucket Pipelines

Hi, I'm trying to setup SSH access from bamboo to bitbucket.

Created an SSH key, uploaded public key to bitbucket and private key to bamboo as a shared credential.

When selecting shared credentials on repository in bamboo, error is shown:

Screen Shot 2017-07-25 at 15.56.16.pngHowever, shared credential does exist:

Screen Shot 2017-07-25 at 15.56.50.png

Running bamboo 6.1.0.

Any help would be much appreciated...

3 answers

1 accepted

0 vote

According to your screenshot Bamboo tries to find Shared credentials of Username/password type. Please create such type of shared credentials to load list of repositories. It's limitation of Bitbucket Cloud REST api, we can't use SSH credentails on that step. It's required only for repository configuration and will not be sent to agent during build execution

You can choose SSH shared credentials on same screen below to be used for regular checkout operations. 

Thanks Alexey, I found the problem. And it's in line with your suggestion that bitbucket cloud doesn't have SSH support.

Creating a new vanilla Git repository connection solved my problem.

Bitbucket Cloud has SSH support for regular Git operations. Bamboo requires username/password (or application password) to fetch list of available repositories using Bitbucket Cloud REST API

The assumption made by bamboo is that everyone logs in with username/password and not OAuth...

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot