R language: open ssh connection

2019-02-25 02:31发布

问题:

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.

回答1:

Consider CRAN packages:

  • ssh.utils
  • RCurl

RCurl supports scp

ssh.utils supports also remote execution and monitoring:

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



标签: r networking ssh