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

Can't use forward-agent ssh in pipelines?

laurenskling
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 17, 2017

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

I use http://pm2.keymetrics.io/docs/usage/deployment/ 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
TAGS
AUG Leaders

Atlassian Community Events