Skip to content

Instantly share code, notes, and snippets.

@agmm
Last active March 12, 2020 15:19
Show Gist options
  • Save agmm/a95c82d6212ec87c0b1a0941093510d3 to your computer and use it in GitHub Desktop.
Save agmm/a95c82d6212ec87c0b1a0941093510d3 to your computer and use it in GitHub Desktop.
Google Cloud SSH Configuration
# Generate a new key
ssh-keygen -t rsa -f ~/.ssh/sometest -C someTest
# Go to ~/.ssh and copy the contents of your .pub file
# Then enter the contents in the metadata section of gcloud
# Connect using the key created above
ssh -i sometest someTest@ip
# Then you can login without specifying the key
ssh someTest@ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment