title: How to discover where 'pip install git+ssh://...' is searching for ssh keys?
body: <h2>Question:</h2>
  
  <p>Does anyone know if there's a simple means of discovering where <code>pip install git+ssh:///...</code> is searching for ssh keys?</p>
  
  <h2>Quick background (RESOLVED...see update below):</h2>
  
  <p>I am on Windows 10. I needed to install a private remote repository from github using pip in a conda virtual environment. I am the repo owner. I have a public/private ssh key pair set up through github.com. My local key is stored in <code>C:\Users\MyName\\.ssh\id_rsa</code>. Using this key I am able to push and pull without issue from github using my IDE, Eclipse.</p>
  
  <p>However, when I executed the following command using my activated conda environment:</p>
  
  <pre><code>pip install git+ssh://github.com/USER_NAME/REPO_NAME.git
  </code></pre>
  
  <p>I got the following error:</p>
  
  <pre><code>Collecting git+ssh://github.com/USER_NAME/REPO_NAME.git
  Cloning ssh://github.com/USER_NAME/REPO_NAME.git to
  c:\users\USER_NAME\appdata\local\temp\pip-ghf3ts-build
  Warning: Permanently added 'github.com,IP_ADDRESS' (RSA) to the list of
  known hosts.
  Permission denied (publickey).
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  
  <p>I know that the repo exists, and I know the ssh key works fine; so, I assumed whatever ssh routine pip was calling was not properly configured. </p>
  
  <h2>Update</h2>
  
  <p>I have solved this issue since then, and the 'bad configuration' assumption proved to be correct! I added a config file to C:\Users\MyName\.ssh specifying which file to use. Wham-bam, it works great now. </p>
  
  <p>However! I would still be interested in knowing if there were anyway to have confirmed that pip was looking in that directory for ssh keys and configs; so, I'll leave this question open for now.</p>