title: Bitbucket SSH authentication
body: <p>I have a problem connecting with my SSH service,</p>
  
  <p>ssh-agent is running:</p>
  
  <blockquote>
    <p>ps -e | grep ssh<br><br>
    12163 ?        00:00:00 ssh-agent</p>
  </blockquote>
  
  <p>and caches my only identity:</p>
  
  <blockquote>
    <p>ssh-add -l<br><br>
    4096 25:56:f4:9c:09:65:fe:39:b3:17:73:bd:3c:76:3f:8d /home/matthias/.ssh/id_rsa (RSA)</p>
  </blockquote>
  
  <p>everything exists as it should:</p>
  
  <blockquote>
    <p>ls ~/.ssh/<br><br>
    id_rsa  id_rsa.pub  known_hosts</p>
  </blockquote>
  
  <p>and id_rsa.pub is uploaded to Bitbucket.org SSH-Keys section..</p>
  
  <p>However SSH authentication fails (using the verbose mode, one can see, that it somehow tries to load the non-existing id_dsa file)</p>
  
  <blockquote>
    <p>ssh -v -T hg@bitbucket.org<br>
    [...]<br>
    debug1: Next authentication method: publickey<br>
    debug1: Offering RSA public key: /home/matthias/.ssh/id_rsa<br>
    debug1: Authentications that can continue: publickey<br>
    debug1: Offering RSA public key: /home/matthias/.ssh/id_rsa<br>
    debug1: Remote: Forced command: conq username:matthias_hueser<br>
    debug1: Remote: Port forwarding disabled.<br>
    debug1: Remote: X11 forwarding disabled.<br>
    debug1: Remote: Agent forwarding disabled.<br>
    debug1: Remote: Pty allocation disabled.<br>
    debug1: Server accepts key: pkalg ssh-rsa blen 535<br>
    debug1: key_parse_private_pem: PEM_read_PrivateKey failed<br>
    debug1: read PEM private key done: type <br>
    Enter passphrase for key '/home/matthias/.ssh/id_rsa':<br> 
    debug1: read PEM private key done: type RSA<br>
    debug1: Remote: Forced command: conq username:matthias_hueser<br>
    debug1: Remote: Port forwarding disabled.<br>
    debug1: Remote: X11 forwarding disabled.<br>
    debug1: Remote: Agent forwarding disabled.<br>
    debug1: Remote: Pty allocation disabled.<br>
    debug1: Authentications that can continue: publickey<br>
    debug1: Trying private key: /home/matthias/.ssh/id_dsa<br>
    no such identity: /home/matthias/.ssh/id_dsa: No such file or directory<br>
    debug1: Trying private key: /home/matthias/.ssh/id_ecdsa<br>
    no such identity: /home/matthias/.ssh/id_ecdsa: No such file or directory<br>
    debug1: No more authentication methods to try.<br>
    Permission denied (publickey).<br></p>
  </blockquote>
  
  <p>Has somebody else run into the same problem and has
  a suggestion?</p>
  
  <p>[Thanks for the Edit]</p>