title: Permission denied (publickey). fatal: The remote end hung up unexpectedly while pushing back to git repository
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3617113/github-newbie-problems-permission-denied-publickey-fatal-the-remote-end">github: newbie problems -&gt; Permission denied (publickey). fatal: The remote end hung up unexpectedly</a>  </p>
  </blockquote>
  
  
  
  <p>please see the below command ,</p>
  
  <pre><code>$ git clone git://github.com/{user_name}/{project_name}.git
  Initialized empty Git repository in /home/dengx/rorBlog_demo/rorblog/.git/
  </code></pre>
  
  <p>Changing the files and committing it, so i need to push back to git repository.</p>
  
  <pre><code>$ git push git@github.com/{user_name}/{project_name}.git master
  Permission denied (publickey).
  fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>so, i copy the ssh-key of the repository to my file ~/.ssh/id_rsa.pub, and then push again,</p>
  
  <pre><code>$ git push git@github.com/{user_name}/{project_name}.git master
  Agent admitted failure to sign using the key.
  Permission denied (publickey).
  fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>Now, what should i do ,  thanks any helps.</p>