RBigData / remoter

Control a remote R session from your local R session.
Other
83 stars 11 forks source link

Where to issue SSH tunnel command? #59

Open gezmi opened 3 years ago

gezmi commented 3 years ago

Hi,

this seems like a lovely package, but I cannot get it to work. I am trying to connect to a server on a university system which is behind VPN. I hava already connected to the uni's system via a VPN client. I have started an SSH session on my remote computer, after logging in via SSH. Now, I am trying to connect with ssh tunneling, using the command ssh user@server -L 55556:localhost:55555 -N (changing user and server, of course) in RStudio's terminal. This asks for password and then hangs. Then, I am issuing remoter::client() command, which hangs indefinitely. I suppose, this is not the wanted behaviour. What am I doing wrong?

Thank you!

wrathematics commented 3 years ago

Hard to say what may be going on. Just to make sure, is the remote computer running a server when you try to connect with remoter::client()? With your ports, you should have the server listening on port 55555 and the client should be called on the local machine as client(port=55556).

gezmi commented 3 years ago

Thank you, I realized I did not set port to 55556. Now it works!

Is there a way to open a project via remoter or to see the files in the file browser in Rstudio?

wrathematics commented 3 years ago

Integration with rstudio isn't great. It may be possible to do those sorts of things using the rstudioapi package, but I haven't investigated it.