ssh and scp examples in Bitbucket pipelines

image: php:7.1.29
pipelines:
  default:
    - step:
        name: Deploy artifacts using SCP to PROD
        deployment: production
        script:
          - pipe: atlassian/ssh-run:0.2.2
            variables:
              SSH_USER: $USER
              SERVER: $SERVER
              PORT: 2022
              COMMAND: 'rm -rf /var/www/qa/* ; ln -s /var/www/vendor /var/www/qa/vendor'
          - pipe: atlassian/scp-deploy:1.2.1
            variables:
              USER: $USER
              SERVER: $SERVER
              REMOTE_PATH: '/var/www/qa'
              LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/*'
              EXTRA_ARGS: ["-P", "2022"]