The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Use non-22 SSH port in pipelines?

Deleted user
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

Atlassian Community Events