Can't use forward-agent ssh in pipelines?

With the new SSH Keys Pipeline settings, i can easily get ssh access to my server from pipelines. Which is great.

I use to deploy my JS code to my server. It logs into my server (which works because of the ssh keys), then pulls the git code from bitbucket, which doesn't work because it has no access. Sad panda :(

pm2 supports forward-agent, and this works from my local machine. I added the Pipelines ssh-key to my project, so it gets read access. Still no luck. Whe i debug the ssh connection to bitbucket, I can see


debug1: Authentications that can continue: publickey

debug1: Next authentication method: publickey

debug1: Trying private key: /home/appuser/.ssh/id_rsa


etc. which is my server user.

Whilst running this locally, my server will return my local id and get a successfull connection with it.

So i can only imagine, forward-agent is not working. Any ideas?

0 answers

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 10, 2018 in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

248 views 14 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you