Last active
January 27, 2018 18:36
-
-
Save ignacio82/4d97650be699dd34866b194286ec7e2a to your computer and use it in GitHub Desktop.
ssh into github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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