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

Use non-22 SSH port in pipelines?

Ahmad El-Bardan May 10, 2017

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

10 votes
davina
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2017

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
TAGS
AUG Leaders

Atlassian Community Events