Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ignacio82
Last active January 27, 2018 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ignacio82/4d97650be699dd34866b194286ec7e2a to your computer and use it in GitHub Desktop.
Save ignacio82/4d97650be699dd34866b194286ec7e2a to your computer and use it in GitHub Desktop.
ssh into github
library(googleComputeEngineR)
vm <- gce_vm_template(template = "r-base",
predefined_type = "f1-micro",
name = "test1",
dynamic_image = gce_tag_container("im-rstudio"),
wait = TRUE)
vm <- gce_ssh_setup(vm,
username = "ignacio",
key.pub = "/home/ignacio/.ssh/id_rsa.pub",
key.private = "/home/ignacio/.ssh/id_rsa")
gce_ssh(vm, "echo foo")
## example to check logs of rstudio docker container
gce_ssh(vm, "sudo journalctl -u rstudio")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment