I'm trying to generate a pipeline from my repo for my VPS, but it looks like my vps can not perform a git pull.
I added a ssh key to my team, I also added ssh to my repo, specifically, but whenever I run a pipeline, my vps response is:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
If I run git pull manually, from my vps ssh, its run corretly.
What's wrong?
Here's my pipeline file:
image: atlassian/default-image:latest
pipelines:
branches:
master:
- step:
script:
- echo "Started deploy..."
- cat ./deploy.sh | ssh <user>@<ip>
And my deploy.sh:
#/var/www/rendup_hotsite
cd /var/www/rendup_hotsite
git pull origin master
echo 'Deploy step finished'