PlatformIO Community

Github private repository in platformio library manager


Hi, I’m trying and failing in configuring platformio to pull library from private Github repository.
According to this it should be possible, but I’m still failing.
I’m using VSCode IDE on Windows 10, plus I have Git for windows and Github client installed.

  1. I have ssh-agent running with correct private key added (I tested that using git from command line)
  2. I tried several options in configuring platformio.ini
  3. but none of them works (I tried few more, but definitely wrong syntax) - I’m getting “permission denied (publickey)” error
  4. I copied command line from IDE error window and run it directly from CMD - it went through without any issue

Any idea on how to make it work?


All right. Found the way around it.

Solution is to forget about ssh-agent and configure ssh config file properly
StrictHostKeyChecking no
IdentityFile c:\Users\me\.ssh\private_key_rsa


This worked for me aswell, thanks a bunch!