Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SSH Connection timedout Edited

Hi Team,


We are hosting our application in AWS-EC2.

We have created SSH public and private key in bitbucket and added the public key to the remote host.

We have created bitbucket-pipelines.yml file and try to run the pipeline.

But couldn't able to login to remote server and finally it through out the error with the following message " Connection timed out".

I have restricted the SSH access in my security group to allow only the specific address.

When I remove the restriction of SSH. I can able to check the host-key verification.

If it is the issue. What are all the IPs do I need to add in my security group to allow the bitbucket pipeline to communicate with my remote host.

Kindly assist us with the better solution to proceed further. 


Best Regards,

V Ragul


1 answer

0 votes

Hi Ragul,

If you have restrictions on the IPs that can communicate with your remote host, you can whitelist the IP ranges in the following document:

Specifically, the ones mentioned in the section "Valid IP addresses for Bitbucket Pipelines build environments".

Please feel free to let us know if this works or if you need further assistance.

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

3,808 views 64 20
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