1. Login to the link : https://cloud.google.com/
2. The page will be open and then Click the “Go to console“
3. Console page will be open. Click the ” Navigation menu ” in the left side, top corner.
4. Once click the Navigation menu, there are multiple option would visible. Select there “compute engine” and then the new menu will be open where need to select the “VM instances” to create / to see the available VM.
5. Once click the VM instances, we can see the available VMs but as there is no VM here, it will ask option to create / import the VM. So, Click the ” Create “option
6. Once click the create, the new page will open where we can provide the required configuration details, like RAM, CPU , Images and the region everything.
7. Here, i selected the “Debian Linux ” . Can change the OS with the option “Change“
8. After selecting the OS, will provide the SSH key for the password less access form your system. So, select the “security” option after selecting the ” Management, security, disks, networking, sole tenancy” ( Can see the same option from above snapshot in the end )
9. Once selected the security , it will ask to copy the SSH key.
Now , will see how to generate the SSH key from the puttygen for the password less access from the system to google cloud VM.
i. Open the puttygen application from system ( this will be come along with putty application . So, if not there, install the same )
ii. Once open the Puttygen, there is a option ” Generate “. Click the same to generate the key but need to keep move the mouse point continuously until it get generate )
iii. SSH key generating process.
iv. SSH key generated and the see the same under “key” .
v. Save the private key and public key in somewhere in the local system by clicking the save option.
vi. Once saved private key and public key , copy the key under ” key ” section and paste in google cloud security page.
10. Copied key from puttygen, can be paste it in the below snap under the security section.
11. Once pasted, Click “create” option to create the VM.
12. The VM will be created in the google cloud. Now, there are 2 way to access the VM.
i. To access the VM, just click the “SSH” option under “connect”
As soon as click the SSH option, the new pop up window will be launched and getting connected with the linux machine.
Now VM is connected and can execute any linux related commands to use it.
ii. To access VM directly from our system using putty without password, just take the external IP from the Google cloud for the respective VM
Also take the ” key comment” from puttygen while generating key as this will be used as username while login to the created linux VM. This name can be given based on our wish.
Now open the Putty and provide the “key comment” as username and external ip of the VM like below,
example : [email protected]
Once provided the above Ip and username, map the Private key which was save in the local system. To map, click the SSH option in the left side tree and the select the auth option. Now, there is browse option would visible in the right side and upload the private key using the same
Once uploaded the private key, just click the open option in the putty.
So, now ready to connect the VM where it will ask the security check and press ” yes “
Vm is connected using putty which is installed from local machine.
13. Now how to delete the VM which was created. So, click the VM instance on the top center, it will open up with multiple option where you can select the ” delete ” option
14. Once clicked the delete, it will ask for surety to delete the VM. Press delete.
15. VM started deleting.
Happy Learning 🙂