Hi Folks, I came through this issue just today and could clarify after messing around a good amount of time.
- Generate a SSH pub/pvt key using putty.
- Put the public key to GCP global metadata.
- Save the putty pvt key in OpenSSH format.
- Save the putty pvt key in putty RSA format.
- Connect to the bastion host with through putty (using the generated user).
- Upload the OpenSSH converted pvt key to the GCE instance
- Change permission of the file,
- chmod 600 <key-file-name>.
- SSH to the other instance with the above keyfile.
- eg: ssh -i <key-file-name> user@instance-name
- That’s it. You are in!!
Leave a comment