Skip to content

Instantly share code, notes, and snippets.

@nk-gears
Forked from sharathchandramg/create-ssh-key-pair.md
Created October 19, 2018 11:15
Show Gist options
  • Save nk-gears/205e1ac3aae0b44a6f4da09a5b2304e3 to your computer and use it in GitHub Desktop.
Save nk-gears/205e1ac3aae0b44a6f4da09a5b2304e3 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