title: Cannot clone using deploy key (bitbucket) EC2
body: <p>I am not able to clone my repository to my remote EC2 ubuntu instance using my deployment key.
  Here are the steps I followed.</p>
  
  <ol>
  <li>I deleted the existing deployment keys I had in my bitbucket account </li>
  <li>I cleaned <code>~/.ssh/know_hosts</code> following <a href="https://stackoverflow.com/a/26520681/808734">https://stackoverflow.com/a/26520681/808734</a></li>
  <li>I generated my new key following <a href="https://help.github.com/articles/generating-ssh-keys/" rel="nofollow noreferrer">these steps</a>
  and added it as a <a href="https://blog.bitbucket.org/2012/06/20/deployment-keys/" rel="nofollow noreferrer">deployment key</a> to the repo. </li>
  <li><p>Here is the output of <code>ssh -T git@bitbucket.org</code></p>
  
  <p><code>You can use git or hg to connect to Bitbucket. Shell access is disabled.
  This deploy key has read access to the following repositories:
  username/repository: KEYNAME -- email@gmail.com</code></p></li>
  <li><p>But when I try to clone the repository<br>
  <code>sudo git clone git@bitbucket.org:username/repository.git</code> I get the following error
  <code>
  Cloning into 'repository'...
  Permission denied (publickey).
  fatal: Could not read from remote repository.
  Please make sure you have the correct access rights
  and the repository exists.</code></p></li>
  </ol>
  
  <p>Am I missing something here? Anybody has any advice?</p>
  
  <p>Thanks for reading.</p>