title: Cannot push to git repository - permission denied
body: <p>I have a following problem:</p>
  
  <pre><code>$ git push -u origin master
  Permission denied (publickey).
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  
  <p>I have already checked the connection doing this:</p>
  
  <pre><code>$ ssh -vT git@github.com
  </code></pre>
  
  <p>and output looks good, I was correctly authenticated.</p>
  
  <p>While checking further, I noticed that:</p>
  
  <pre><code>$ ssh-add -l
  The agent has no identities.
  </code></pre>
  
  <p>I have tried to run ssh-agent, but nothing changed:</p>
  
  <pre><code>$ ssh-agent
  SSH_AUTH_SOCK=/tmp/ssh-A1mhFqvqncuO/agent.766; export SSH_AUTH_SOCK;
  SSH_AGENT_PID=767; export SSH_AGENT_PID;
  echo Agent pid 767;
  $ ssh-add -l
  Could not open a connection to your authentication agent.
  </code></pre>
  
  <p>I am using Arch Linux. Any help would be strong appreciated! Thanks in advance!</p>
  
  <p><a href="https://help.github.com/articles/error-permission-denied-publickey/">Github diagnostic help here.</a></p>