title: Heroku 'Permission denied (publickey) fatal: Could not read from remote repository' woes
body: <p>I've searched around for many hours on end looking to a solution to my seemingly easy-to-fix problem. It's not that my search turned up nothing, it's that my search turned up so many different solutions -none of which have worked.</p>
  
  <p>Anyways, I am simply unable to push, pull, or fetch from my Heroku repository from my Mac. Every attempt gives me (as if it's mocking me) the following error:</p>
  
  <blockquote>
    <p>'Permission denied (publickey). fatal: Could not read from remote
    repository.'</p>
  </blockquote>
  
  <p>I've tried (and re-tried) to fix it in many different ways. As I've said, I've spent a good chunk of the last two days searching around for an answer. Here are some of the things I've tried:</p>
  
  <ul>
  <li>heroku keys:clear followed by heroku keys:add</li>
  <li>Regenerating an ssh key on my own with 'ssh-keygen -t rsa'</li>
  <li>Clearing out my .ssh directory, followed by heroku keys:clear, followed by generating an ssh key</li>
  <li>Deleting my app on heroku and recreating one (fortunately not much was on there)</li>
  </ul>
  
  <p>I can fetch from my GitHub repository fine, so I know it's not network connectivity (pinging heroku also works). </p>
  
  <p>As a makeshift solution (that I hope doesn't turn into a permanent one), I've logged in to my Ubuntu Amazon AWS ec2 instance. Pulling and pushing to and from Heroku works perfectly. For this reason, I still feel as if the problem lies with the ssh key on my Mac. Both keys show up under my Heroku account. Does the email address at the end of the key matter?</p>
  
  <p>EDIT: I can push and pull from GitHub fine (I'm not using ssh, however), so why not Heroku?</p>
  
  <p>At this point I'm willing to try anything. Thanks!</p>