How do I run command over SSH in a pipeline?

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

0 votes
Accepted answer

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

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?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

62 views 4 0
View post

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