Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,301,303
Community Members
 
Community Events
165
Community Groups

How many parallel ssh connections?

Hi,

in Bitbucket pipeline i use some build scripts for my project. I try to update 17 customer systems parallel > so i need to open 17 ssh connections in parallel.

9 of 17 ssh connection failed with error message: "ssh: connect to host XXXX.my-server.com port 222: Network is unreachable"

After they failed i can "rerun the failed" to update all other failed customer systems... but this manually thing is not the solution.

 

Question: Is there a limitation for outgoing parallel ssh connections in Atlassian/Bitbucket/Pipeline?

 

Michael

1 answer

1 accepted

0 votes
Answer accepted
Patrik S Atlassian Team Jun 09, 2022

Hello @Michael Hohlfeld ,

Thank you for reaching out to Atlassian Support.

There shouldn't be a limitation on the number of the parallel SSH connection. As the error being returned is "Network is unreachable", I think there's a possibility of the destination server's firewall to be blocking the connection from pipelines. Do you have one pipeline step for each of the ssh connections, or do you run all of the connections at a single step? I ask this because different steps might be assigned different IP addresses from our IP ranges, so I would suggest making sure you have the all following IP addresses whitelisted in the firewall of all your customer's systems: 

Also, I would recommend trying to run it locally in a docker container, and see if you can reproduce the issue. To run it locally in a docker container and simulate a similar environment as pipelines you can follow the instructions outlined in the below documentation : 

Hope that helps! Let me know in case you have any questions.

Thank you, @Michael Hohlfeld .

Kind regards,

Patrik S

Hi Patrik,

regarding your question „Do you have one pipeline step for each of the ssh connections, or do you run all of the connections at a single step?

I run all of the connections at a single step and also increased the number of parallel incoming ssh connections on the customer system, but without success.

What works finally for me: Split the 17 parallel ssh connections from 1 step to 4 steps with 5+5+5+2 parallel ssh connections.

Pipeline time before: 2min

Pipeline time after: 6 min

Maybe your firewall thing will work, but my solution works great for me.

That the deployment needs now 6 instead of 2 min is totally fine for me.

Thanks and all the best

Michael

Like Patrik S likes this
Patrik S Atlassian Team Jun 09, 2022

Hello @Michael Hohlfeld ,

Awesome! Thank you for sharing the solution that you have used :)

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,265 views 2 9
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