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

Rsync with different SSH port

Shabith Thennakone April 17, 2019

Hi There!

I'm using Rsync Deploy bitbucket pipeline and I tried to deploy to a server with a different SSH port and it doesn't work.

Below are the list of configs I have tried so far.

  1. EXTRA_ARGS: '-e "ssh -p 2345"'
  2. EXTRA_ARGS: "-e 'ssh -p 2345'"
  3. EXTRA_ARGS: '-e ssh -p 2345'

Is there any other of doing this?

Thanks

1 answer

0 votes
Alexander Zhukov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2019

Hi @Shabith Thennakone , 
Well, the issue with your configuration is that bash doesn't handle quotes nicely, which causes various syntax errors. I don't think there is currently a way to avoid that. If you can setup an rsync daemon on your server you should be able to use the --port option in EXTRA_ARGS to connect. We might be able to add a support for custom SSH ports to the pipe at some point.

Shabith Ishan April 23, 2019

Thanks @Alexander Zhukov
Until you guys support SSH ports I will use rsync command itself. Thanks for your support.

Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 17, 2019

Hi @Shabith Thennakone

now you can use new pipe Rsync deploy version with SSH_PORT parameter:

script:
  - pipe: atlassian/rsync-deploy:0.2.0
    variables:
      USER: 'ec2-user'
      SERVER: '127.0.0.1'
      REMOTE_PATH: '/var/www/build/'
      LOCAL_PATH: 'build'
      DEBUG: 'true'
      SSH_PORT: '8022'

Cheers,
Alex

Shabith Ishan August 4, 2019

Thanks @Oleksandr Kyrdan 

Like Oleksandr Kyrdan likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events