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

ssh-run: running script on remote server hangs


Hello -

I am trying to configure a bitbucket pipeline using a runner to run on an AWS EC2 instance. I have the runner up and running via the command supplied when creating the runner.

I came across the ssh-run pipe and thought that might be a good solution for this task, especially because a lot of the examples have ec2-user as SSH_USER.

I want to configure a simple git pull command on the ec2 instance, yet the pipeline just hangs at `ssh -A -tt -i /root/.ssh/pipelines_id -o StrictHostKeyChecking=no -p 22...`

Here is the pipeline yaml file along with the script it is attempting to execute.

image: atlassian/default-image:2

- step:
runs-on: self.hosted
- pipe: atlassian/ssh-run:0.3.1
SSH_USER: 'ec2-user'
SERVER: <ec2 IP addr>
MODE: 'command'
COMMAND: <script on ec2 instance>


script (on the ec2 instance):


git -C <path on ec2 instance> pull


Thank you.



just a silly ssh/bitbucket auth as expected now.


1 answer

1 accepted

0 votes
Answer accepted

@aslane  hi. So do you solve you problem? If yes, consider to move your edit comment as separate response and mark it as answered.


Regards, Igor.

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

178 views 2 4
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