SSH key not working on pip but works on git

Viewed 29

Today I created a new github account, created a new HHS key, I overwrote the old key I had from a previous project, and added the new key to the new account. Then I went to install some packages that this new account has acces to using github+ssh. I'm on Windows10, python3.

When I ran

pip install git+ssh://git@github.com/myProject

I got the folowing error

Cloning ssh://****@github.com/myproject to c:\users\location
  Running command git clone --filter=blob:none --quiet 'ssh://****@github.com/myProject' 'C:\Users\tempLocation'
  it@github.com: Permission denied (publickey).
  fatal: Could not read from remote repository.

  Please make sure you have the correct access rights
  and the repository exists.

But if I run

git clone git+ssh://git@github.com/myproject

Or even the same line as the error message

git clone --filter=blob:none --quiet 'ssh://****@github.com/myproject' 'C:\Users\tempLocation'

Both work fine, no authentication issues. So I get the impression that pip is using a different SSH key than git, maybe an old key is stored somewhere for some reason. I tried looking at the .ini files with pip config debug but it says they don't exist.

So I com to you to figure out what could be going on, as I don't where else to look. I'm using python3 and PyCharm IDE, I also tried using the windows terminal and I got the same results. Thank you for your help.

edit: I had a typo in the pip command, the problem persists

0 Answers
Related