Create SSH keys for Google Cloud Platform
Prerequisites
Hardware : GCP
Google account
puTTY is used to create a key to make a connection to access the GCP instances via SSH.
Go through the below link to install PuTTY.
The Key will be generated. Type the user-id and give any key passphrase [password]. Then copy the key which is generated.
NB: After key comment and pass phrase only you can copy the key.
![](https://prwatech.in/blog/wp-content/uploads/2021/03/7-11.jpg)
Open the GCP. Click Menu> VM Instances> Compute Engine> Metadata.
Don’t close the puTTY key generator.
![](https://prwatech.in/blog/wp-content/uploads/2021/03/8-14.jpg)
Add Metadata.
![](https://prwatech.in/blog/wp-content/uploads/2021/03/9-10.jpg)
Click the SSH Keys> Edit.
![](https://prwatech.in/blog/wp-content/uploads/2021/03/10-7.jpg)
Click on Add item. Paste the key copied from the puTTY. Click Save.
![](https://prwatech.in/blog/wp-content/uploads/2021/03/11-7.jpg)
Now go back to the puTTY key generator. Click on Save private key. Choose the location and save it.
![](https://prwatech.in/blog/wp-content/uploads/2021/03/12-8.jpg)
Now close the puTTY key generator. Open the VM instances in GCP. Copy the External IP.
![](https://prwatech.in/blog/wp-content/uploads/2021/03/13-7-1024x269.jpg)
Open puTTY. Paste the IP address in Host Name. Port selected automatically.
![](https://prwatech.in/blog/wp-content/uploads/2021/03/14-7.jpg)
Click on SSH> Auth. Click on Browse. Select the saved puTTY key and press open.
![](https://prwatech.in/blog/wp-content/uploads/2021/03/15-6.jpg)
In security alert press Yes.
![](https://prwatech.in/blog/wp-content/uploads/2021/03/16-5.jpg)
Give the user ID and password. Password will not be visible. Press enter. Now the GCP account is accessible.
![](https://prwatech.in/blog/wp-content/uploads/2021/03/17-6.jpg)
Create SSH keys for Google Cloud Platform