[R] SSH Through R Script

afoo Aaron_Foo at brown.edu
Fri Apr 9 08:01:59 CEST 2010


Hi,

I am trying to SSH to a remote server through R script. In other words, I
would like to know how I can get a SSH connection to the remote server and
then execute commands on that server with the R script.

So in bash, I would normally type ssh -lusername remoteserver.com; press
enter and then wait for the password prompt to key in my password.

I have tried system("ssh remoteserver.com") but that doesn't work because,
from what I know, SSH requires user interactivity - I am required to key in
my password.

I tried looking up about putting password as a command line parameter, but
SSH doesn't allow that, my only option then is to set up a private/public
key pair. But the admin of the remoteserver doesn't allow me to do that.

Is there a way in which I can SSH in? Or is there a command in R that allows
me to interact with the command prompts interactively?

thanks,
afoo
-- 
View this message in context: http://n4.nabble.com/SSH-Through-R-Script-tp1809635p1809635.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list