youngmon/atlassian-qna huggingface dataset:
Updating SSH host keys - SourceTree
Asked by Michelle McGinnis:

I am pretty clueless when it comes to SSH and keys. I've been using SourceTree/Bitbucket for a while now and have bunch of repositories set up \& configured, connecting via SSH. Per this article that came out yesterday (<https://bitbucket.org/blog/ssh-host-key-changes>) there's going to be a change to the Bitbucket host keys.

My local ssh key is RSA. I can't figure out where or what the Bitbucket host keys are. Do I need to do anything?


Answers:
author: Yana
body: Hi [@Michelle McGinnis](/t5/user/viewprofilepage/user-id/116079)

For SourceTree specifically, we have also added instructions to our public FAQ, depending on the version you are using MacOS or WIN.

Here is the link to the FAQ on how to update your **known_hosts** file for SourceTree:

<https://confluence.atlassian.com/bbkb/bitbucket-cloud-ssh-host-key-rotation-faq-1235851234.html>

We hope that after going through the steps and adding new Keys as outlined in the Blog <https://bitbucket.org/blog/ssh-host-key-changes>

you are able to switch to the newly introduced ECDSA or Ed25519 keys now.

Let us know if you need further help.


author: Kimberly Luttenbacher
body: Yes, scroll down on that article; just past the announcement are the instructions on what you need to do. It's fairly simple and they also show you how to check.

If you want to see if it's already done without using their method, you can go to your .ssh/known_hosts file and see if the key is in there already.

example

```
vim ~/.ssh/known_hosts
```

I'm looking for this entry:

```
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDQeJzhupRu0u0cdegZIa8e86EG2qOCsIsD1Xw0xSeiPDlCr7kq97NLmMbpKTX6Esc30NuoqEEHCuc7yWtwp8dI76EEEB1VqY9QJq6vk+aySyboD5QF61I/1WeTwu+deCbgKMGbUijeXhtfbxSxm6JwGrXrhBdofTsbKRUsrN1WoNgUa8uqN1Vx6WAJw1JHPhglEGGHea6QICwJOAr/6mrui/oB7pkaWKHj3z7d1IC4KWLtY47elvjbaTlkN04Kc/5LFEirorGYVbt15kAUlqGM65pk6ZBxtaO3+30LVlORZkxOh+LKL/BvbZ/iRNhItLqNyieoQj/uh/7Iv4uyH/cV/0b4WDSd3DptigWq84lJubb9t/DnZlrJazxyDCulTmKdOR7vs9gMTo+uoIrPSb8ScTtvw65+odKAlBj59dhnVp9zd7QUojOpXlL62Aw56U4oO+FALuevvMjiWeavKhJqlR7i5n9srYcrNV7ttmDw7kf/97P5zauIhxcjX+xHv4M=
?
```

Since that was the last thing I did it's right at the end (in vim, you can go to the end with SHIFT+G, and you can exit the file with ESC :q)


Tags: bitbucket-cloud

cloud

sourcetree

ssh
not receiving two-factor authentication email
Asked by Sonika Boyapally:

When I try to open the bitbucket account.. i am asked to set up two-step verification.   
However I am not receiving the email.

![DAC06752-99F2-498E-A4E5-BDDED38E2D25.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/257620iE7A74EA48CFD4DE0/image-size/large?v=v2&px=999 "DAC06752-99F2-498E-A4E5-BDDED38E2D25.jpeg")


Answers:
author: Ben
body: G'day Sonika!

Whenever you reset your 2FA, it takes 24 hours to receive an email.

The 24-hour waiting period might be a long time to wait before being able to access your account. However, this waiting period is a security measure to prevent unauthorized individuals from exploiting this recovery method.

After the 24 hour wait period, a recovery email will be sent with a one-time login link that will allow you access to your account.

This security process has been implemented in the recovery process and cannot be overridden.

I've noticed you've since disabled your 2FA on the workspace.

Please let me know if you are still having issues.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: 2-factor-authentication

bitbucket-cloud

cloud
Deploy files from self hosted Windows runner
Asked by Paul VanRoosendaal:

Do self hosted Windows runners support pipes?

If not, how do I deploy or move the files after build?


Answers:
author: Theodora Boudale
body: Hi Paul,

Windows runners do not support pipes. The way you can deploy depends on what is supported by the server you want to deploy to.

For example, if the server you want to deploy to allows SSH connections and you wanted to use the **scp-deploy** pipe, you could set up SSH keys and use an **scp** command instead in the script of your bitbucket-pipelines.yml file

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/#SSH-Keys>
* <https://linux.die.net/man/1/scp>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
i am having a hard time with Bitbucket. Where canI find good videos on it?
Asked by MarkBorg:

I am new to the whole topic of bitbucket and would love to see some good videos about it.Can you help me out?


Answers:
author: G subramanyam
body: Hi [@MarkBorg](/t5/user/viewprofilepage/user-id/5220651) welcome to the Atlassian community.

Listed are training/ learning sites to explore BitBucket:

* [Atlassian university Bitbucket track](https://university.atlassian.com/student/catalog/list?category_ids=25309-bitbucket)
* <https://cloudacademy.com/course/atlassian-bitbucket/introduction-bitbucket/>
* <https://mindmajix.com/bitbucket-tutorial>


Tags: bitbucket-cloud

cloud
is it possible to reflect all the packages installed in runner using your own docker images ?
Asked by Adarsha Shrestha:

currently i am using my own docker image in self hosted runner which contain packages like (sfdx ,volta ,sgd ) .But when i run a bitbucket pipeline it create its own container . do i need to installed all the packages that i installed in runner container again , or the runner packages will reflect in that bitbucket pipeline container ?


Answers:
author: Theodora Boudale
body: Hi [@Adarsha Shrestha](/t5/user/viewprofilepage/user-id/5214548) ,

If you are using a Linux Docker Runner, then the builds indeed do not run in the runner's container.

For every step of your build, another Docker container starts (the build container) using the image you have specified in your bitbucket-pipelines.yml file. If you use a service for a step, then another Docker container will start for the service which will share a network adapter with your build container. The repo is cloned in the build container, and then the commands of the step's script are executed. When the step finishes, the build container and any service containers get destroyed.

If you want to use certain packages, they need to be pre-installed in the image you specify as a build container in your bitbucket-pipelines.yml file or you can install them during the build. You can always build your own custom Docker image with only the tools you need for your builds, and use that in the yml file. We support public and private Docker images including those hosted on Docker Hub, AWS, GCP, Azure and self-hosted registries accessible on the internet:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-docker-images-as-build-environments/>

Kind regards,  
Theodora


author: Erez Maadani
body: Hi [@Adarsha Shrestha](/t5/user/viewprofilepage/user-id/5214548)

Technically, if you can control the container command, you can add a mount to your installed packages location which should enable you to expose the packages to the container.

Few things that you'll need to consider:

1. Maintenance \& package management overhead.
2. How will you be able to re-build old versions of your code after some packages have been upgraded?
3. Can you keep multiple versions of the same package? How will you support different base images or same base image with different version?

And there are probably few more things to consider.


Tags: bitbucket-cloud

cloud
condition for Monorepo changes
Asked by Kaushik Das:

I have a nx monorepo with multiple apps. Want deploy based on if the dist/app/app1 is generated or changeset of files.   
So, far I have tried condition changeset but its using and condition.

Want to deploy if any one of the directory has any changes.

**condition:**  
**changesets:**  
**includePaths:**  
**- "apps/app1/\*\*"**  
**- "lib/app1/\*\*"**  
**- "lib/dependency/\*\*"**  
Currently to trigger deployment it needs to change change in both the directory. Is there any way to make it any of the file changes triggers deployment?


Answers:
author: Theodora Boudale
body: Hi [@Kaushik Das](/t5/user/viewprofilepage/user-id/5220269) and welcome to the community!

If you have multiple paths in **includePaths**, then a change in any of these paths should trigger a pipeline (it shouldn't be required to have a change in all of them).

Please keep in mind the following:
> In a pull-requests pipeline, all commits are taken into account, and if you provide an includePath list of patterns, the step or stage will be executed when at least one commit change matches one of the conditions.
>
> For other types of pipelines, only the last commit is considered.

<br />

What type of pipeline are you using for the step or stage that has this condition?

If it is not a pull-request pipeline, can you check the build log of a step that didn't run and see if there was a change in any of these paths in the commit that triggered the build?

Kind regards,  
Theodora


author: Aron Gombas _Midori_
body: Lame idea: as you can use wildcards, why don't you just:  
**condition:**  
**changesets:**  
**includePaths:**  
**- "\*\*/app1/\*\*" \<- this pattern matches both the "apps/" and "lib/" sub-dirs!**

comments: author: Kaushik Das
body: This will work. But I also have some dependency modules that I can not add like this.


Tags: bitbucket-cloud

cloud
Bitbucket Cloud - Automatically add default approvers when creating a new pull request via the API
Asked by Paolo.Ascari:

Hello, using the Bitbucket ++**CLOUD**++ API:

* Is there a way to have default approvers automatically added when creating a new pull request?

*and/or:*

* Is there an endpoint to get a list of a repository's default approvers?

Thanks in advance for any pointers!


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Welcome to the community [@Paolo.Ascari](/t5/user/viewprofilepage/user-id/5176130) !

I suppose you could fetch the repository or project default reviewer configuration via the Bitbucket REST API \[1\] and update the pull request with these reviewers \[2\].

Another option is to use a convenient app like Workzone for Bitbucket cloud \[3\] where you can configure reviewers or reviewer groups at branch- or even file/path-level and the app will add them automatically when a PR is created. You can also enforce how many approvals you require before the PR can be merged.

Hope that helps, and please let me know if you need any further assistance.

Best, Ulrich

\[1\] <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-effective-default-reviewers-get>

\[2\] <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-put>

\[3\] [https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=cloud&tab=overview)

Disclosure: Izymes offers Workzone for Bitbucket Cloud and Server on the Atlassian Marketplace.

comments: author: Paolo.Ascari
body: Hello Ulrich, and thank you for the detailed reply.

The default reviewers endpoint \[1\] has proven very useful, so we are going with that.

It's unfortunate that, when creating pull requests, the API doesn't mimic the front-end (i.e. automatically adding default reviewers), which means we always have to call an additional endpoint first.

Personally, I believe that the API endpoint should always add the default reviewers if this field is missing from the payload, as the caller would still have the option to pass an empty array to intentionally obtain the current behaviour.

Cheers, Paolo


Tags: api

approver

bitbucket-cloud

cloud

default

pull-request
Bitbucket Cloud Website: Password protection
Asked by Georg Duemlein:

Hi team!

I wonder if there is an option to password-protect Bitbucket Cloud Websites?  
So only people from our workspace can access the content?

Or is this feature just for public content, and we'd better look at a different hosting option for private content, like APIs and SDKs?

Thanks!


Answers:
author: Theodora Boudale
body: Hi Georg!

If you are hosting a website in bitbucket.io as per [this documentation](https://support.atlassian.com/bitbucket-cloud/docs/publishing-a-website-on-bitbucket-cloud/), then there is no option to password-protect such a website.

Instead of hosting a website, you could use the [README](https://support.atlassian.com/bitbucket-cloud/docs/readme-content/) of a private repo to add content. The README is visible on the **Source** page of the repo, right below the list with the repo's files.

If this option doesn't work for you and you want to have a website, then a different hosting option may be best.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

website
AWS Private Instance integration with bitbucket pipeline ( Rsync-deploy)
Asked by RaghavaV:

Hi Support,  

Please help us to connect private servers from aws console to bitbucket for deployment pipeline.  

**INFO:**   
1. We used **"atlassian/rsync-deploy:0.8.1"** pipe.  
2. We Integrated public servers and deployed the code using SSH integration successfully.  

**Requirement:**   

1. We should integrate the private servers and deploy the code using **"atlassian/rsync-deploy:0.8.1"** pipe.  

**Problem facing:**   

1. In Repository Settings--\>SSH settings--\>My own Keys--\>  

Unable to fetch the Private server's fingerprints. Find the error below,  
**(Unable to fetch fingerprints, check host SSH connection and try again).
<br />
Please help us in integrating the private servers to Bitbucket** ASAP.  
( We are connecting private servers through VPN).  

Revert back if any info required further.  

<br />

Thanks \& Reagrds,  
Raghava V  
+91 7892789403


Answers:
author: Igor Stoyanov
body: [@RaghavaV](/t5/user/viewprofilepage/user-id/5213773) hi. It is hard to help you with your initial problem. But maybe some tips that could help you.  

Try this approach to [deploy to AWS with OIDC](https://support.atlassian.com/bitbucket-cloud/docs/deploy-on-aws-using-bitbucket-pipelines-openid-connect/).  

Also we have some AWS based pipes, that allows you to deploy to different Amazon services:  
[aws-cloudformation-deploy](https://bitbucket.org/atlassian/aws-cloudformation-deploy) , [aws-code-deploy](https://bitbucket.org/atlassian/aws-code-deploy) , [aws-ecs-deploy](https://bitbucket.org/atlassian/aws-ecs-deploy) , [aws-elasticbeanstalk-deploy](https://bitbucket.org/atlassian/aws-elasticbeanstalk-deploy) , [aws-lambda-deploy](https://bitbucket.org/atlassian/aws-lambda-deploy) , [aws-s3-deploy](https://bitbucket.org/atlassian/aws-s3-deploy) , [aws-sam-deploy](https://bitbucket.org/atlassian/aws-sam-deploy) .  

Regards, Igor


Tags: bitbucket-cloud

cloud
Import to the new repositories from the older location
Asked by adas1:

which role is required for Import to the new repositories from the older location in bitbucket


Answers:
author: Theodora Boudale
body: Hi [@adas1](/t5/user/viewprofilepage/user-id/5065251),

If you want to import a repository in a Bitbucket Cloud workspace named workspace-a, you need to have permission to create repositories in this specific workspace.

This is possible in one of the following ways:

* Your Bitbucket user is added by an admin to a User group that has the option **Can create repositories in this workspace** enabled
* Your Bitbucket user (or the user group that your user is added to) is added by an admin to the **Project permissions** of one of the workspace's projects with permissions **Create**

Please feel free to reach out if you have any other questions.

Kind regards,  
Theodora

comments: author: adas1
body: Thanks Theodora


Tags: bitbucket-cloud

cloud
Is there a way to prevent Slack notifications from Bitbucket Cloud Apps for specific user comments?
Asked by ???SA:

Hello, I have installed Slack Bitbucket Cloud Apps and integrated it with SonarQube to add comments during pull requests. However, SonarQube generates a lot of comments, and I would like to prevent those comments from appearing in Slack. Is there a way to achieve this?


Answers:
author: Theodora Boudale
body: Hi [@???SA](/t5/user/viewprofilepage/user-id/5152256),

I'm afraid that this is not possible at the moment. If you open the repo on Bitbucket Cloud website and go to **Repository settings** \> **SLACK Settings** , there is a notification **pull request commented**. If that is enabled, then all PR comments will trigger a Slack notification. You could remove this notification, but you won't receive Slack notifications for any PR comments then. Is there perhaps a way to limit the number of comments that SonarQube generates? Or do you need all of these comments in PRs?

I went ahead and created a feature request for what you asked in our issue tracker:

* <https://jira.atlassian.com/browse/API-665>

I would suggest adding your vote to it (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Someone has already added that key as an access key to a repository.
Asked by Sandeep Kumar:

Hi Team,

I have used the ssk key in one bit account and wanted to use the same ssh key in another bit bucket as i have multiple bit bucket accounts to be connected to jenkins server via ssh.

Could you please advise on this please.

Thanks \& Regards,

Sandeep


Answers:
author: Theodora Boudale
body: Hi Sandeep and welcome to the community!

The error message from your post's title indicates that ++the public key has been added as an Access key to a repository and not to an account++.

If you have added a certain public key as an **Access key** to a repository, you can also add this to the Access keys of other repos (from **Repository settings** \> **Access keys** ), or to the Access keys of a project (**Project settings** \> **Access keys**). Access keys will provide read-only access to the repos they have been added to (or to the repos belonging to a project you have added the key to).

However, a key you have added as an Access key, cannot be added to the SSH keys of an account (<https://bitbucket.org/account/settings/ssh-keys/>) at the same time.

It is also not possible to add an SSH key used by a certain account to a different account (because we use the key to identify the authenticated user).

<br />

If you need read-only access, instead of adding this key to an account, you can add it as an Access key to the other repos or projects.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


author: Baskar Annamalai
body: Hi [@Sandeep Kumar](/t5/user/viewprofilepage/user-id/5219162)

This is possible if you are binding the SSH key with a single email ID. Not sure if Jenkins would be able to identify the different accounts based on the SSH key. I would recommend giving a shot at the following KB - [Managing multiple Bitbucket user SSH keys on one device](https://support.atlassian.com/bitbucket-cloud/docs/managing-multiple-bitbucket-user-ssh-keys-on-one-device/)

Best regards,  
Baskar Annamalai  
ServiceRocket.


Tags: bitbucket-cloud

cloud
Getting "We couldn't log you in" error in bitbucket
Asked by Emil Andersson:

I'm able to login to atlassian fine, im logged in here.

When i try to go to bitbucket.org i get an login error. I have tried disabling extensions, incognito mode and trying a completely different browser (firefox with no extensions).

Nothing helps. What do I do? I can't access my repo.

![atlassian-login.png](https://community.atlassian.com/t5/image/serverpage/image-id/257186i1E0B7CC26D515222/image-size/large?v=v2&px=999 "atlassian-login.png")


Answers:
author: Ben
body: G'day [@Emil Andersson](/t5/user/viewprofilepage/user-id/5219107) !

Welcome to the Bitbucket Cloud community :)

I can see that your workspace was marked DORMANT due to inactivity, I've just re-activated your workspace so you should be able to log in now.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Emil Andersson
body: Ok. But I had other workspaces too. So because this "default repo" was marked dormant, nothing worked and I couldn't access anything?

Sounds like a bug? :)

Thanks for helping me out though!


Tags: bitbucket-cloud

cloud
Login to BitBucket fails from SourceTree
Asked by OC2PS:

I am able to log into the bitbucket.org website fine. But with the same credentials, SourceTree seems to be having trouble logging in - keeps giving me error. This is a new problem. The last time I tried this (admittedly several months ago) it worked fine from SourceTree.


Answers:
author: bgannin
body: Hi [@OC2PS](/t5/user/viewprofilepage/user-id/628870),

A few questions:

1. What version are you using?

2. What OS are you on?

3. What error are you seeing?

Thanks,

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: OC2PS
body: Thanks for the quick response. Sorry for not providing the info sooner - the notification ended up in my Spam folder.

Anyway:

1. What version are you using? 2.3.5.0

2. What OS are you on? Windows 10

3. What error are you seeing?

Logon failed, use ctrl+c to cancel basic credential prompt.  
remote: Invalid username or password  
fatal: Authentication failed for 'https://OC2PS@bitbucket.org/teamnevis/opencart-expected-delivery-date.git/'

Completed with errors, see above.


author: OC2PS
body: [@bgannin](/t5/user/viewprofilepage/user-id/744444) Any ideas/suggestions?


author: bgannin
body: [@OC2PS](/t5/user/viewprofilepage/user-id/628870) Can you try it with 3.0.17, our latest Windows release, and let me know if it reproduces still? Thanks!


author: OC2PS
body: [@bgannin](/t5/user/viewprofilepage/user-id/744444)I have now upgraded to the latest SourceTree release. Still getting:
> *git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin*   
> *Logon failed, use ctrl+c to cancel basic credential prompt.*   
> *remote: Invalid username or password*   
> *fatal: Authentication failed for 'https://OC2PS@bitbucket.org/teamnevis/opencart-expected-delivery-date.git/'*
>
> *Completed with errors, see above.*

I even did reset password, via the Forgot Password function. SourceTree refuses to log me in, regardless.


author: OC2PS
body: [@bgannin](/t5/user/viewprofilepage/user-id/744444)One additional piece of info which may or may not be relevant: When I went to Tools \> Options \> Authentication, the account there was showing login failed too. However, when I changed from https to SSH, the authentication worked.

That said, when I try to pull/push to any bitbucket repo, and am asked for password, I still get the aforementioned error.


author: OC2PS
body: [@bgannin](/t5/user/viewprofilepage/user-id/744444)After the aforementioned change to SSH and successful authentication in Tools \> Options, I closed SourceTree and opened again. No luck.

Then I set the account as Default. No luck.

Then I closed SourceTree. Opened again. This time, the login window looked completely different. I put in the credentials, and voila, I was able to log in/ pull from repo.


Tags: bitbucket