![](/img/trans.png)
[英]Unable to clone/pull/push a repository with Git for Windows 2.14 over SSH
[英]Unable to pull / push through git with SSH in RStudio?
我不确定问题是什么,因为我很久以前就这样做了。
基本上每当我尝试通过终端或 RStudio 拉/推时,都会要求我输入用户名和密码(以前不是这样)。 当我提供它们时,我收到一条错误消息,指出它已被禁用。 曾经,一旦我的 SSH 公钥被添加到 Github,一切就正常了。
我也试过ssh -T git@github.com
它工作得很好(我得到了“嗨[用户名]。你已经成功验证了[...]”。
我向自己介绍了 git,创建了新密钥,并使用 ssh 代理注册了它们——不走运。
从终端检查使用的 URL:
cd /path/to/local/repository
git remote -v
如果是 HTTPS 一个,并且你想使用 SSH:
cd /path/to/local/repository
git remote set-url origin git@github.com:MyAccount/MyRepository
一旦从命令行运行,您就可以切换回 RStudio。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.