cannot make cluster on remote host in R studio

I'm unable to create a cluster on a remote machine in R studio, works fine in R terminal
Running Ubuntu Linux, R version 3.6.2

this works in terminal
'''r

library(parallel)
cl <- makePSOCKcluster(c("localhost","localhost"),user="mark")
cl
socket cluster with 2 nodes on host ‘localhost’
stopCluster(cl)
cl <- makePSOCKcluster(c("localhost","laptop"),user="mark")
mark@laptop's password:
cl
socket cluster with 2 nodes on hosts ‘localhost’, ‘laptop’
'''

same code in R studio hangs:
'''r

library(parallel)
cl <- makePSOCKcluster(c("localhost","localhost"),user="mark")
cl
socket cluster with 2 nodes on host ‘localhost’
stopCluster(cl)
cl <- makePSOCKcluster(c("localhost","laptop"),user="mark")
'''

any ideas? (also, is there a way to specify the password in code, I'm hoping to use maybe 100 nodes)

Mark

R uses ssh to connect to these nodes, so I suspect the simplest way forward would be to authenticate with SSH keys rather than requiring interactive password input.

yep, that worked on Linux. Having trouble getting keys copied in Windows 10, (a Windows problem, not an R studio problem, but if you have any suggestions ....)
thanks

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.