rstudio推送“ rpostback-askpass”错误

Ant*_*tex 3 git ssh-keys rstudio

从CLI,我可以推/拉到git。但是,从Rsudio,我只能拉而不能推。我已经为ssh / https端口打开了防火墙,但是在尝试推送时仍然出现以下错误:

error: unable to read askpass response from 'rpostback-askpass'
fatal: could not read Username for 'https://github.com': No such device or address
Run Code Online (Sandbox Code Playgroud)

Rstudio版本0.99.484。

Vil*_*mko 5

问题出在RStudio中最新的https身份验证中。(如本帖子中所述

解决方案是通过在项目中编辑存储库的配置,将存储库URL从https切换到ssh:.git / config

然后,不要忘记设置公共密钥在github上(你的简介- >设置- > SSH密钥作为解释这里


Ant*_*tex 0

解决方案是将密码添加到位于 .ssh 目录中的“id_rsa”。这就是对我的案例起作用的。我正在使用 Linux 服务器。

~/.ssh$ ls
**id_rsa  id_rsa.pub  known_hosts
Run Code Online (Sandbox Code Playgroud)

步骤如下:

第 1 步:尝试从 CLI 进行 ssh 时您会看到什么

 $ ssh -vT git@github.com
    # ...
    # Agent admitted failure to sign using the key.
    # debug1: No more authentication methods to try.
    # Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)

第2步:在后台启动ssh-agent

eval "$(ssh-agent -s)"
# Agent pid 59566
ssh-add
# Enter passphrase for /home/you/.ssh/id_rsa: ***TYPE YOUR PASSPHRASE HERE***
# Identity added: /home/you/.ssh/id_rsa (/home/you/.ssh/id_rsa)
Run Code Online (Sandbox Code Playgroud)

第三步:$init 6 <-----重启你的linux服务器

现在,我可以从 Rstudio 推送/拉取!

信用转到此链接:https ://help.github.com/articles/error-agent-admited-failure-to-sign/