title: .ssh/id_rsa failed: permission denied
body: <p>I have been scanning the web/SO and read several permission denieds plea's for help I just cant find one that solves my issue in a way i understand.</p>
  
  <p>I'm following these instructions (<a href="http://devcenter.heroku.com/articles/python#prerequisites" rel="noreferrer">Getting Started with Python on Heroku/Cedar</a>). Everything went alright until:</p>
  
  <pre><code>drewverlee@ubuntu:~/helloflask$ source venv/bin/activate
  (venv)drewverlee@ubuntu:~/helloflask$ git push heroku master
  
  The authenticity of host 'heroku.com (50.19.85.132)' can't be established.
  RSA key fingerprint is ##:##:##:##:##:##:##:##:##:##:##:## (I replaced with #)
  Are you sure you want to continue connecting (yes/no)? yes
  Failed to add the host to the list of known hosts (/home/drewverlee/.ssh/known_hosts).
  Permission denied (publickey).
  fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>(Not sure of security so i replaced the key with (#))</p>
  
  <p>I think it might be because of </p>
  
  <pre><code>drwx------  2 root       root        1024 2012-03-08 21:26 .ssh
  </code></pre>
  
  <p>because</p>
  
  <pre><code>drewverlee@ubuntu:~$ ssh-keygen
  Generating public/private rsa key pair.
  Enter file in which to save the key (/home/drewverlee/.ssh/id_rsa): 
  Enter passphrase (empty for no passphrase): 
  Enter same passphrase again: 
  open /home/drewverlee/.ssh/id_rsa failed: Permission denied.
  Saving the key failed: /home/drewverlee/.ssh/id_rsa.
  </code></pre>
  
  <p>As someone with little experience in these matters i'm not sure how to undo what i have done safely as i know i'm meddling with powerful tools. Any advice on whats going on here?
  Let me know if i need to include more information to solve the problem.</p>