你如何在 R 中使用 ssh 连接到远程服务器 [英] how do you connect to a remote server with ssh in R
本文介绍了你如何在 R 中使用 ssh 连接到远程服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用用户名和密码连接到远程 ssh 服务器并读取文件?我做了一些研究,并没有遇到任何关于这方面的信息.如果您有任何见解,我将不胜感激.
Is it possible to connect to remote ssh server with username and password and read a file? I've done some research and did not come accross with any information about this. I'd appreciate any insight.
推荐答案
RCurl 中有对 ssh/scp 的直接支持:
There is direct support for ssh/scp in RCurl:
x = scp("remote.ssh.host.com", "/home/dir/file.txt", "My.SCP.Passphrase", user="username")
这篇关于你如何在 R 中使用 ssh 连接到远程服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文