R语言:打开ssh连接 [英] R language: open ssh connection

查看:62
本文介绍了R语言:打开ssh连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过 ssh 打开远程 shell 以从 R 发送命令.只要我发送命令,我就需要获取结果并发送取决于先前命令输出的新命令.

I am trying to open a remote shell via ssh to send commands from R. As long as I send commands, I need to get results and send new commands that depends on the output of the previous ones.

出于这个原因,我正在寻找一种解决方案来打开连接并在 R 代码中对其进行管理,直到我完成为止.我还需要用 ssh 密钥交换打开连接(所以没有密码认证).

For this reason I am looking for a solution to open a connection and manage it from within the R code until I have finished. I also need to open the connection with ssh key exchange (so without password authentication).

查看 CRAN 我没有发现任何有用的东西.

Looking at CRAN I didn't find anything useful.

推荐答案

考虑 CRAN 包:

RCurl 支持 scp

ssh.utils 还支持远程执行和监控:

ssh.utils supports also remote execution and monitoring:

https://github.com/collectivemedia/ssh.utils/tree/主人/人

这篇关于R语言:打开ssh连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆