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 Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

451 views 6 9
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