Skip to content

Instantly share code, notes, and snippets.

@sharathchandramg
Last active October 19, 2018 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sharathchandramg/e37c3b1c3671f15a8505cf37e4c37d4b to your computer and use it in GitHub Desktop.
Save sharathchandramg/e37c3b1c3671f15a8505cf37e4c37d4b to your computer and use it in GitHub Desktop.
GCP Helpers

Steps to create ssh-key pai required when creating the VM's in GCP/AWS

ssh-keygen -t rsa ~/.ssh/staging.mobileoffize.com -C <user_name>

This will generate public key and private key pairs in the location sepcified above

Copy the ssh-keys in to cloud instances

If we are creating new instance

cat ~/.ssh/staging.mobileoffixe.com.pub

copy the key and paste while creating the VM

Existing instance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment