title: BitBucket Pipelines and DigitalOcean permission denied
body: <p>Currently getting this everytime I run my Pipeline: <code>Permission denied (publickey).</code></p>
  <p>Steps so far:</p>
  <p>On Mac:</p>
  <ul>
  <li>cd ~/.ssh</li>
  <li>ssh-keygen -t rsa -N '' -f my_ssh_key</li>
  <li>base64 &lt; my_ssh_key</li>
  <li>ssh-copy-id -i my_ssh_key.pub root@xxx.xxx.xxx.xxx</li>
  <li>cd /my/repo/path</li>
  <li>ssh-keyscan -t rsa server.domain.com &gt; my_known_hosts</li>
  </ul>
  <p>On BitBucket</p>
  <blockquote>
  <p>Repo &gt;&gt; Settings &gt;&gt; SSH Key &gt;&gt; Use my own</p>
  </blockquote>
  <ul>
  <li>Pasted result of base64 &lt; my_ssh_key into Private</li>
  <li>Pasted my_ssh_key.pub into Public.</li>
  </ul>
  <p>Run Pipeline</p>
  <blockquote>
  <ul>
  <li>ssh root@xxx.xxx.xxx.xxx ls -l /var/www</li>
  </ul>
  <p>Permission denied (publickey).</p>
  </blockquote>
  <p><strong>pipeline.yml</strong></p>
  <pre><code>image: node:6.9.4
  
  pipelines:
    default:
      - step:
          caches:
            - node
          script:
             - ssh root@xxx.xxx.xxx.xxx ls -l /var/www
  </code></pre>