The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I run command over SSH in a pipeline?

moigagoo
April 4, 2017

I'm doing everything by this guide: https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html

Generated the keys, appended the public key to ~/.ssh/authorized_keys on the remote hsot, added the remote host to known hosts. However, my builds fail with `Permission denied (publickey)`.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
moigagoo
April 4, 2017

My bad. I forgot to specify the username for ssh login.

Richard Fitzjohn
April 13, 2017

Hi Konstantin - I'm having troubles using the generated SSH keys in my pipelines. Could you show me the example script/command that you are using to add it?

TAGS
AUG Leaders

Atlassian Community Events