SSS into Digital Ocean Server in pipelines.

mshahbazm September 10, 2017

Hi,
I have been trying to ssh into digitalocean VPS but no luck.
I even tried to make a simple bash script for it but It throws an error
"Permission Denied"

My Pipleline :

pipelines:
  default:
    - step:
        script:
          - echo "Everything is awesome!"
  branches:
    staging:
      - step:
          script:
            - ./do-deploy.sh


do-deploe.sh

echo "Deploying on Digital Ocean..."
ssh -o StrictHostKeyChecking=no -i $My_KEY user@server

echo "Deploying on Digital Ocean..."
ssh -o StrictHostKeyChecking=no -i $My_KEY user@server


Any help will be highly appreciated.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events