title: How do I push to private repo using an account credentials not associated with my pubkey?
body: <p>I have two Github accounts (I know this is kind of dumb, but it's company policy):</p>
  
  <p><code>UserA</code> is my <strong>work</strong> account, and I authenticate using my pubkey on my <strong>work machine</strong>.</p>
  
  <p><code>UserB</code> is my <strong>personal</strong> account, and want to push to a private repo from my <strong>work machine</strong>, using my <strong>personal</strong> username/password as credentials (as opposed to a pubkey).</p>
  
  <p>However, when I try to <code>push</code> to a private repo on a <code>UserB</code> account from my work machine, I get a permissions error:</p>
  
  <pre><code>ERROR: Permission to &lt;UserB&gt;/&lt;new repo&gt;.git denied to &lt;UserA&gt;.
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  
  <p>The new repo definitely exists on Github.</p>
  
  <p>As <a href="https://stackoverflow.com/questions/15551409/how-to-change-git-ssh-user-for-a-remote-push-temporarily">other posts</a> have suggested, I have tried <code>git push &lt;UserB&gt;@github.com:&lt;UserB&gt;/&lt;new repo&gt;.git master:master</code>, but I get a similar error: <code>Permission denied (publickey).</code></p>
  
  <p>How do I force git to authenticate as <code>UserB</code> on <code>push</code> without adding the SSh key from my work machine to the <code>UserB</code> account??</p>