title: Putty: Getting Server refused our key Error
body: <p>I created key pair using <code>puttygen.exe</code> (client is windows 8). On server (Ubuntu 12.04.3 LTS), I have put my public key in <code>~/.ssh/authorized_keys</code>. The public key is this:</p>
  
  <pre><code>ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAopfM6RHOgnuc4Aftn3t4k5UIAT3StCAbn/vg/IMbphbXadshC+79sIlRq3P4zGzMjFTP4hKnzu6ehLV5lmj/qorq3SKT+bPO5Qrac3VbIlrGvuBFDDjP82I2Hwg3HzlsFTstqk++KToapaTYZ7jENEYyPl2wnzITJnt//+4U1o6juoXTKgdNE02hHnRZyHOV/bnkZyJJCEwJv5U0eXSThQnhmXtUxGT8U0HQNFiXfqIIVllhWiCnyrhhIaKz/CIJNAd2VmzyJzQtJtTQX8aWSNVrZju6Sv2/RncTNvsACdNgjjh/FH8PQXaep00jlJ3MOdsC8vz6VSPFbh6iKy1oLQ== rsa-key-20131231
  </code></pre>
  
  <p>So it's correct (one line, no comments, starts with ssh-rsa, etc.)</p>
  
  <p><code>.ssh</code> dir permission level is 700, authorized_keys file permission is 600. Both directory and file owned by the actual user that I try to log in. </p>
  
  <p>When I try connecting I'm getting <code>'server refused our key'</code> and server asks for password. That's all. Nothing is logged to <code>/var/log/auth.log</code> when attempting to log in with the key. </p>
  
  <p>I've looked everywhere and all articles and tips mention setting chmod 600 and 700 for the file/directory and formatting the key correctly. I've done all this still getting 'refused our key' error and I'm out of ideas.</p>