Use non-22 SSH port in pipelines? Edited

Hey,

 

I am trying to setup bitbucket pipelines to deploy code on PR merges.

I already did it for one project without a problem but the SSH Port for this projects server is the default 22 one.

For the new project however I have another non-standard SSH port which seems to give me errors. I already checked that I can execute the very same command locally without a problem but as soon as pipelines executes it, it fails. My guess is that the port is simply blocked by bitbucket?

The error I get when trying to do an rsync:

rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]

 

1 answer

0 votes

Hi Ahmad,

Under your Repository settings > Pipelines > SSH Keys you can add a host address with a specific port using this syntax

address:port

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

652 views 0 4
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