RCurl :: scp-无法交换加密密钥

问题描述

我目前正在尝试通过Linux上的RCurl::scp()从远程计算机读取文件

添加了我的公开密钥(~/.ssh/id_rsa.pub,格式为open-ssh)和私有密钥(~/.ssh/id_rsa),并能够从终端ssh和scp到远程计算机。

不幸的是,我还无法从R中传输或读取文件

RCurl::scp(
  user = "root",host = "hostname",path = "/path/file",)
#> Error in function (type,msg,asError = TRUE)  : 
#>   Failure establishing ssh session: -5,Unable to exchange encryption keys

我的问题可能与Using SCP function from Rcurl in R

有关

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)