Go to this question. I know this question is a bit outdated, but for someone else facing the same problem (like me), this is what I found.
Problem
You probably don't have a library that git2r (the package that devtools uses to interact with git ) uses to communicate via SSH.
Decision
Install it. The example below assumes Ubuntu.
sudo apt-get install libssh2-1 libssh2-1-dev
git2r uses a library called LibSSH2 to allow SSH transfers. You can install it using the package manager if you are running Linux. NOTE, if you are on Windows, git2r does not yet support SSH: / Like git2r version 0.11.0 (which uses the updated version of libgit2 ), it looks like SSH is also supported on Windows . Starting with this change, the newest version of git2r is 0.15, so if you donβt have SSH support on Windows, try updating git2r (yelling at zeehio for news).
After you installed LibSSH2 , you will need to reinstall the git2r package to enable SSH transport (since it is enabled / disabled during package build).
Sources
Problems with github:
Why do I need LibSSH2 at all? git doesn't use it, right?
You're right! git does not use it (as far as I know). However, libgit2 , which is a pure implementation of the C git API used by git2r .
source share