title: Composer permission denied (publickey)
body: <p>I Have a private repo on BitBucket, Im trying to install on localhost using composer install, here is my composer.json file:</p>
  
  <pre><code>{
  "repositories": [
      {
          "type": "git",
          "url":  "git@bitbucket.org:username/repo.git"
      }
  ]
  }
  </code></pre>
  
  <p>When I run composer install from the command line I get:</p>
  
  <blockquote>
    <p>[RuntimeException]
      Failed to execute git clone --mirror "git@bitbucket.org:username/repo.git" "C:/Users/...../"
      Cloning into bare repository 'C:/Users/.....'...
      Permission denied (publickey).
      fatal: Could not read from remote repository.
      Please make sure you have the correct access rights
      and the repository exists.</p>
  </blockquote>
  
  <p>My key pair has an passphrase but composer never asks for it, I am running windows 10 with the Pageant client running and the correct key selected.</p>
  
  <p>Also there is a config file with this data:</p>
  
  <pre><code>Host bitbucket.org
  IdentityFile ~/.ssh/openssh (yes my key name is openssh)
  </code></pre>
  
  <p>The funny thing is that if I copy and paste this command: </p>
  
  <blockquote>
    <p>git clone --mirror "git@bitbucket.org:username/repo.git"</p>
  </blockquote>
  
  <p>I do get ask for my passphrase and after that it start cloning the Repo.</p>
  
  <p>What could be wrong? most information about this error refers directly for git commands, but in my case they work, what is not working is composer, what am i doing wrong?</p>