Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to do ssh from bitbucket cloud pipelines

Purshotam Patidar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 3, 2024

Hi,
I am facing error since 1 month, before it is working fine. As of now not able to connect my remote server from bitbucket, as i have already allowed all of the public ip addresses of  bibucket cloud from where pipelines needs to runScreenshot from 2024-12-03 17-22-00.png

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 4, 2024

Hi and welcome to the community!

We have recently updated our 1x/2x size option builds to operate from new, broader IP ranges.

The documentation of Bitbucket Pipelines Cloud IP addresses is divided into two sections:

  • Section 1: Valid IP addresses for Bitbucket Pipelines build environments

    This section applies to 1x/2x step sizes (or 4x/8x steps that have not been explicitly flagged to use atlassian-ip-ranges). An exhaustive list of IP addresses from which the traffic may originate on AWS can be obtained by using the following endpoint. You should filter records where the service equals EC2 or S3, and focus on the us-east-1 and us-west-2 regions. However, we do not recommend using these IP ranges as a security control due to their broad nature.

  • Section 2: Atlassian IP Ranges

    This section pertains to steps specifically configured to use Atlassian IP ranges. These are applicable only to 4x and 8x size steps that have the atlassian-ip-ranges: true flag enabled. The step sizes 4x and 8x are only available for builds running under a paid Bitbucket Cloud plan (Standard or Premium).

    To mitigate your issue and use the more restricted set of IPs, I suggest adjusting your pipeline configuration to include the following:

pipelines:
default:
- step:
size: 4x
runtime:
cloud:
atlassian-ip-ranges: true
script:
          - echo "This step will use atlassian-ip-ranges"

You can find more details in the documentation here: Runtime Step Options.

This configuration improves security by restricting the IP addresses utilized by Pipelines builds to the Atlassian IP ranges.

Please Note: Opting for larger step sizes (4x/8x) may impact billing. We encourage you to review the relevant documentation on step sizes here to understand these implications fully.

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

Kind regards,
Theodora

Konstantina Vatidi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 5, 2024

Hi Theodora, 

Thanks for your reply. I am having the same issue, so could you clarify one thing for me please? If we are in a free plan and we are having the same problem, I understand that we cannot use the option to set the step sizes to 4x or 8x. So what is the solution, if there is any? 

Looking forward for your reply.
Kind regards
Konstantina

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 6, 2024

Hi Konstantina,

For workspaces on the Free plan, Section 1 from my reply above applies. Pipelines builds will run from IPs belonging to the ranges listed below, filtering to records where the service equals EC2 or S3, and focusing on the us-east-1 and us-west-2 regions:

Please keep in mind that whitelisting all these ranges is not a recommended option, due to their broad nature, but it is an option.

Alternatively, you may consider utilizing Bitbucket's pipeline runners. Runners enable you to execute builds in Pipelines on your own infrastructure. 

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events