How to push git repository through ssh using git2r?
问题 I'm trying to use git2r package (version 0.21.0). I always use ssh connexions in my projects (GitHub and GitLab hosted): I can do git pull/push with both RStudio IDE and command line. I have a standard Ubuntu Xenial configuration; my keys are stored in ~/.ssh with standard names, my ssh-agent is running, and keys were added to ssh-agent . My problem is how to use the git2r package to push with ssh ? Here's what I do with a very basic workflow (work on master , remote name is origin ): library