title: Executing 'git pull' from SSH in Dreamhost to GitHub without password
body: <p>I am having difficulty SSH'ing git commands (e.g. git pull) without having to GitHub enter username and passcode.</p>
  
  <p>I can SSH into my Dreamhost server and manually run <code>git pull</code>. I then have to enter my GitHub username and passcode. This is fine and dandy but I'd like to run <code>git pull</code> <b>WITHOUT</b> having to enter my GitHub credentials every time.</p>
  
  <p>Found out that I needed to add SSH keys but the server still asks for GitHub credentials.</p>
  
  <p>I did the following:</p>
  
  <ol>
  <li><p>SSH'd into Dreamhost shared server using PuTTy</p></li>
  <li><p>Did the following:</p></li>
  </ol>
  
  <p><code>$ ssh-keygen -t rsa</code></p>
  
  <pre><code>Generating public/private rsa key pair.
  
  Enter file in which to save the key (/home/funkyserver/.ssh/id_rsa):
  
  Enter passphrase (empty for no passphrase):   &lt;-- I left this empty
  
  Enter same passphrase again:   &lt;-- I left this empty
  
  Your identification has been saved in /home/funkyserver/.ssh/id_rsa.
  
  Your public key has been saved in /home/funkyserver/.ssh/id_rsa.pub.
  
  The key fingerprint is:
  
  12:c3:12d:88:01:pp:12:b5:ca:33:8g:1q:64:ce:4a:81 funkyserver@wonkyninja  &lt;-- wonkyninja is Dreamhost's server name and this fingerprint is fake
  
  The key's randomart image is:  &lt;-- I left this part out on purpose
  </code></pre>
  
  <ol>
  <li>Copied the /.ssh/id_rsa.pub key and added it under the 'Deploy Keys' section @ GitHub.com</li>
  <li>Back on the Dreamhost server, I SSH'd into the directory with the git repo (e.g. /home/funkyserver/mysite)</li>
  <li>Ran <code>git pull</code> and it still asks me to enter GitHub credentials</li>
  </ol>
  
  <p>What am I doing wrong with the SSH keys? Did I not generate them correctly? Did I not add them to GitHub properly?</p>
  
  <p>Please help.</p>