Skip to content

Instantly share code, notes, and snippets.

@titipata
Last active August 29, 2015 14:15
Show Gist options
  • Save titipata/7c806b278d1b665f7265 to your computer and use it in GitHub Desktop.
Save titipata/7c806b278d1b665f7265 to your computer and use it in GitHub Desktop.
access Google Cloud

Google Cloud

First, we need to install cloud sdk:

curl https://sdk.cloud.google.com | bash

To access Google cloud simply type:

ssh -i ~/.ssh/google_compute_engine <user_name>@<ip>

And to copy the file to Google Cloud:

gcloud compute copy-files <local_folder> <instance-name>:~ --zone us-central1-f

copy file from Google Cloud:

gcloud compute copy-files <instance-name>:<some_folder> <local_folder> --zone us-central1-f
gcloud compute copy-files spooky-instance:<some_file.ipynb> . --zone us-central1-f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment