Last active
March 12, 2020 15:19
-
-
Save agmm/a95c82d6212ec87c0b1a0941093510d3 to your computer and use it in GitHub Desktop.
Google Cloud SSH Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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