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。
解决方案是将密码添加到位于 .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/
| 归档时间: |
|
| 查看次数: |
2295 次 |
| 最近记录: |