See all documentation on the googleComputeEngineR website
Google Cloud comes with a browser based SSH application, which you can launch via gce_ssh_browser
to set it up further to your liking.
library(googleComputeEngineR)
gce_ssh_browser("my-server")