title: In Jenkins: pip install from git repo using SSH keys
body: <p>In my Jenkins job, during the build phase, I execute <code>pip install -r requirements.txt</code>. Among my project's requirements, there are some paths to private git repositories, needing SSH keys to authenticate. I already created the keys (no passphrase), added the public key to the BitBucket server and the private key to Jenkins's credentials.</p>
  
  <p>My project's code is pulled successfully with those same SSH keys (internally, Jenkins uses GIT_SSH), but pip doesn't know to pass them on to the server for authentication (the log shows: <code>Permission denied (publickey)</code>)</p>
  
  <p>I've seen <a href="https://stackoverflow.com/q/39647083/855395">Use SSH Key from Jenkins Git Plugin to Run Git Commands During Build</a> , but it isn't answered. I've also seen some other talk about <code>Publish Over SSH</code> plugin, but I'm not sure it applies to me..</p>
  
  <p>The build machine is Windows, by the way.</p>
  
  <p>Automatically writing the private key to <code>&lt;home_folder&gt;\.ssh\id_rsa</code> seems like a security risk to me, though I might be wrong..?</p>
  
  <p>Is there a way to configure Jenkins to use the same SSH keys it has to pip install ssh entries as well?</p>