Pre-requisite: go to http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html download http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe and http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe
-
Click 'Generate' move the mouse around as instructed and wait
-
enter your desired username
-
enter your password
-
save the private key
-
copy the entire content of the 'Public key for pasting into OpenSSH authorized_keys file' window. Make sure, you copy every single character from the beginning to the very end!
-
go to the cloud console http://cloud.google.com/console select your project and under Compute Engine / VM instances click on 'New instance' click on the advanced options link paste in the contents copied at step 5 into the entry box indicated
Thanks a ton for this article. Yes, the Google documentation on this is not as clear and straight forward as your post.
One thing I did different was configuring the SSH Keys at a Project Level (rather than at VM level) in the GCP Console.
There is an option 'Metadata' in the left navigation pane of 'Compute Engine'. I configured the SSH key in the SSH Keys tab.
Thanks again. Cheers