R-Studio 在没有用户名和密码的情况下使用 GIT 和 2 因素身份验证进行推送和拉取不起作用?

R-Studio push and pull without username and password with GIT and 2 factor auth doesn't work?

我在 Ubuntu 17.1 上使用 R-Studio。 如果 GIT 受 2 因素身份验证保护,如何使 to/from GIT 存储库在没有用户名和密码的情况下工作。

我已尝试将 public 键设置为 GIT,但当我想 push/pull 时它仍然要求我输入用户名密码。

请指教

同步时,请确保您使用的是 github 提供的 SSH URL (git@github.com: ...),而不是 https url (https://github.com/ ....)