cloudyr / googleComputeEngineR

An R interface to the Google Cloud Compute API, for launching virtual machines
https://cloudyr.github.io/googleComputeEngineR/
Other
152 stars 41 forks source link

Support for SSH internal IP #157

Open D-Parker opened 4 years ago

D-Parker commented 4 years ago

I've been using the github version of the library. My organization uses a VPC with subnetworks, but only allows SSH traffic between internal IP addresses. I run Rstudio on a Linux VM instance within the subnetwork. Connecting to the VM instances created by the library via SSH works for me after I manually reassign the IP with this command:

vm$networkInterfaces$accessConfigs[[1]]$natIP <- vm$networkInterfaces$networkIP

Would it be possible to add built-in support for internal IP as an option? (If there is not some other way of setting it up that I have missed)

Thanks in advance

MarkEdmondson1234 commented 4 years ago

Thanks for the how-to on doing it, looks very doable :)

Subnetwork support in general looks like the next feature to work on, similar to https://github.com/cloudyr/googleComputeEngineR/issues/154