Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do you connect to a remote server with ssh in R

Tags:

ssh

r

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.

like image 319
user1471980 Avatar asked Jun 27 '13 15:06

user1471980


People also ask

Is SSH used for remote access?

An inherent feature of ssh is that the communication between the two computers is encrypted meaning that it is suitable for use on insecure networks. SSH is often used to "login" and perform operations on remote computers but it may also be used for transferring data.

How do I connect to a remote server in terminal?

In the Terminal app on your Mac, choose Shell > New Remote Connection. Select a protocol in the Service list. Select a shared server in the Server list. In the User field, enter a user name, then click Connect.


1 Answers

There is direct support for ssh/scp in RCurl:

x = scp("remote.ssh.host.com", "/home/dir/file.txt", "My.SCP.Passphrase", user="username")
like image 180
Alex Vorobiev Avatar answered Oct 14 '22 04:10

Alex Vorobiev