Rstudio-server over ssh

Rstudio is a great tool but suppose you need to access your work computer to do some work from home? Use Rstudio-sever which  allows you to basically connect to a remote machine and do your development there.

I can’t find a definitive answer whether the free version of Rstudio-server encrypts the login information. Their website is not clear.

But we can always tunnel using SSH and things should be just fine.

In putty, setup an ssh tunnel and do the following:

  1. Source port: 8787
  2. Destination: localhost:8787

Once you connect to the remote host using putty, you can use “http://localhost:8787” in your browser to access your Rstudio-server session. The plus is that the connection to the remote host is going over an SSH tunnel and therefore encrypted.