title: How to configure VSCode to auto git fetch without asking for SSH key password on Windows 10
body: <p>Because of this password prompt, auto-fetch, push and pull from VSCode doesn't work. This requires me to manually push/pull from the integrated terminal (which will prompt me a password).</p>
  <p>However, when I run <code>ssh -T git@github.com-work</code> within the Integrated Terminal of VSCode, I am able to ssh in without a password prompt (which is what I am trying to achieve). I have already added the ssh keys via <code>ssh-add</code> and I see them using <code>ssh-add -L</code>.
  Similarly, I am able to run <code>ssh -T git@github.com-work</code> in Windows Terminal without being prompted for the password.</p>
  <p>What I wish to achieve is being able to push and pull my repositories using VSCode's inbuilt tools <strong>without the password prompt</strong> every time I attempt to fetch, pull or push. This password prompt is preventing VSCode from auto-fetching or updating my repository by clicking the sync icon on the bottom right (<em>results in a Permission denied(publickey, keyboard-interactive) prompt from VSCode</em>)</p>
  <p><em>Edit</em>:</p>
  <p>Thanks to VonC, I don't have to type my password everytime I run <code>git fetch</code> etc. within VSCode's integrated terminal. This was solved by adding</p>
  <pre><code>$env:GIT_SSH=&quot;C:\Windows\System32\OpenSSH\ssh.exe&quot;
  </code></pre>
  <p>to my Powershell profile.</p>
  <p>However, it still didn't resolve the main issue that VSCode's internal source control tools are unable to pull from <code>git@github.com-work</code> but keeps trying at <code>git@github.com</code>.</p>