title: How to push to multiple Git repositories using multiple accounts on the same machine?
body: <p>Everything works for the first user (Git user, not Unix user), let's call him aaa, against the first repository.  aaa is set as git user.name and user.email globally using the command</p>
  
  <pre><code>git config --global user.name "aaa"
  git config --global user.email aaa@live.com
  </code></pre>
  
  <p>aaa executes the command</p>
  
  <pre><code>git push origin master
  </code></pre>
  
  <p>successfully.</p>
  
  <p>Then I have a second user, let's call him bbb (again Git user, not Unix usr) on the same machine, but different local working directory, trying to push to a different Git repository.  First, I override the user.name and user.email properties.  So right after git init, I execute:</p>
  
  <pre><code>git config user.name "bbb"
  git config user.email bbb@live.com
  </code></pre>
  
  <p>Then to confirm:</p>
  
  <pre><code>git config --get user.name
  </code></pre>
  
  <p>does return bbb.  When I try to have bbb push to his own repository, git prompts for the SSH passphrase, and it seems to accept the passphrase, but errors out by saying permission denied to aaa.</p>
  
  <p>I suspect that this has something to do with SSH keys.  Is that a right assumption? </p>