Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using rsync-deploy with a bastion server

Robert Wen Community Leader May 18, 2021

I noticed on that there was the ability to set up connection to a bastion host using the EXTRA_ARGS: option for scp-deploy.  

I'm curious if the method would be similar for rsync-deploy and if anybody has used rsync through a bastion host in this way.

Thanks in advance!

1 answer

1 accepted

0 votes
Answer accepted

@Robert Wen yes, you can try going with almost same code, they only difference will be that EXTRA_ARGS will be a string , since in rsync-deploy is written in bash, not in python. And since rsync is different utility, you will use sth like

, EXTRA_ARGS: "-e 'ssh -o $PROXY_COMMAND' ",

where PROXY_COMMAND="ProxyCommand nohup ssh firewall nc -w1 %h %p".

Check out rsync-deploy README examples

Contact us in the case of more questions.

Perhaps , if it fail , try specifying SSH_PORT, and pass your proxy_command in SSH_ARGS, that will be just equal to


in this case

Regards, Galyna

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,514 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you