I've been banging my head on this issue for a few days now.
I am running a Linux Ubuntu on a digital ocean server.
Here is my bitbucket-pipelines.yml
image: php:7.1.1
pipelines: branches:
master:
- step:
deployment: staging
caches: - composer
script: - apt-get update -y
- apt-get install -y ssh
- cat ./deploy.sh | ssh username@XXX.XX.XXX.XXX
- echo "Deploy step finished"
What I've tried so far.
Both of these do not work and I get an error, Permission denied (publickey,password).
I've run this command ssh-add ~/.ssh/<private_key_file> on my remote server to add private key to ssh agent
When I run the command ssh -T git@bitbucket.org I am able to login to bitbucket.
I'm not sure what I'm doing wrong.
According to Bitbucket, your should add your public key (which you can generate on Bitbucket) in
~/.ssh/authorized_keys
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.