R language: open ssh connection

2019-02-25 01:45发布

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.

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).

Looking at CRAN I didn't find anything useful.

标签: r networking ssh
1条回答
Deceive 欺骗
2楼-- · 2019-02-25 02:48

Consider CRAN packages:

RCurl supports scp

ssh.utils supports also remote execution and monitoring:

https://github.com/collectivemedia/ssh.utils/tree/master/man

查看更多
登录 后发表回答