title: GIT_SSH not working on one of my windows slaves
body: <p>Super frustrating because this is working on one of my windows slaves, but not this one- and I cant find any config differences.</p>
  
  <p>On the working slave I see this:</p>
  
  <pre><code>[Pipeline] checkout
  Cloning the remote Git repository
  Cloning repository git@bitbucket.org:myteam/myapp.git
   &gt; git init C:\Jenkins\workspace\test-slave123456 # timeout=10
  Fetching upstream changes from git@bitbucket.org:myteam/myapp.git
   &gt; git --version # timeout=10
  using GIT_SSH to set credentials mygitcreds
   &gt; git fetch --tags --progress git@bitbucket.org:myteam/myapp.git +refs/heads/*:refs/remotes/origin/* # timeout=45
   &gt; git config remote.origin.url git@bitbucket.org:myteam/myapp.git # timeout=10
   &gt; git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
   &gt; git config remote.origin.url git@bitbucket.org:myteam/myapp.git # timeout=10
  Fetching upstream changes from git@bitbucket.org:myteam/myapp.git
  using GIT_SSH to set credentials mygitcreds
   &gt; git fetch --tags --progress git@bitbucket.org:myteam/myapp.git +refs/heads/*:refs/remotes/origin/* # timeout=45
   &gt; git rev-parse "origin/test-slave^{commit}" # timeout=10
  Checking out Revision 30f11ef09ab13f73fb9a6b75983e1bf32437f51d (origin/test-slave)
  Enabling Git LFS pull
   &gt; git config core.sparsecheckout # timeout=10
   &gt; git checkout -f 30f11ef09ab13f73fb9a6b75983e1bf32437f51d # timeout=45
   &gt; git config --get remote.origin.url # timeout=10
  using GIT_SSH to set credentials mygitcreds
   &gt; git lfs pull origin # timeout=45
  Commit message: "test slave"
   &gt; git rev-list --no-walk 30f11ef09ab13f73fb9a6b75983e1bf32437f51d # timeout=10
  </code></pre>
  
  <p>But on the failing slave:</p>
  
  <pre><code>[Pipeline] checkout
  Cloning the remote Git repository
  Cloning repository git@bitbucket.org:myteam/myapp.git
   &gt; git init C:\Jenkins\workspace\test-slave123456 # timeout=10
  Fetching upstream changes from git@bitbucket.org:myteam/myapp.git
   &gt; git --version # timeout=10
  using GIT_SSH to set credentials mygitcreds
   &gt; git fetch --tags --progress git@bitbucket.org:myteam/myapp.git +refs/heads/*:refs/remotes/origin/* # timeout=45
  ERROR: Error cloning remote repo 'origin'
  hudson.plugins.git.GitException: Command "git fetch --tags --progress git@bitbucket.org:myteam/myapp.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
  stdout: 
  stderr: gituserfromcredbinding@bitbucket.org: Permission denied (publickey).
  fatal: Could not read from remote repository.
  </code></pre>
  
  <p>Its the same pipeline job, same repo, same creds, and the slave should be configured the same but when I change the agent to point to the other slave it cant clone.</p>
  
  <p>On the working slave all i had to do was install git for windows (turn off windows cred store), install java, and then run the jnlp jar.</p>
  
  <p>Tried to do the same thing on the non working slave so I dont know why that one could be failing.</p>