title: Using git with multiple accounts: Error: Permission to user/repo denied to other-user
body: <p>I am trying to set up git with a work account and a personal account. I'm quite new to git.</p>
  <p>I am able to push to the work account, but when trying to push to the personal account, I get the following error:</p>
  <pre><code>ERROR: Permission to &lt;personal_repo&gt; denied to &lt;work_github_username&gt;.
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  <p>My ssh config looks like this:</p>
  <pre><code># Personal account, - the default config
  Host github.com-&lt;personal_github_username&gt;
     HostName github.com
     User git
     IdentityFile ~/.ssh/&lt;name_of_personal_private_key_file&gt;
  
  # Work account
  Host github.com-&lt;work_github_username&gt;
     HostName github.com
     User git
     IdentityFile ~/.ssh/&lt;name_of_work_private_key_file&gt;
  </code></pre>
  <p>If I do <code>git remote -v</code> I get:
  origin  git@github.com:&lt;personal_github_username&gt;/&lt;repo_name&gt;.git (fetch)
  origin  git@github.com:&lt;personal_github_username&gt;/&lt;repo_name&gt;.git.git (push)</p>