SSH KEYS CREATION IN MOBAXTERM
-
In the MobaXterm Software, navigate to Tools > MobaKeyGen
-
Click Generate
-
Private and public SSH keys are generated after some time
-
Provide a valid name in the key comment. Save both the public and private keys in the local machine These keys are utilized for authentication into the machines
-
Copy the saved public key. On the Google VM Instances Console, modify the instance as described below:
-
Select the newly created instance
-
Click EDIT
-
-
In the Network Tags, provide the Firewall tag created in Section Firewall Creation for VM . This ensures that the required ports are accessible to the machines
-
Click Add Item and provide the copied public key into the two VMs. Save the provided information
-
Copy the Key value from the SSH-key generator pop-up window. Provide the copied value to SSH-keys. Click SAVE
NOTE:
To enable custom ports for network security, click Networking and add the inbound port rule so that the VM allows inbound traffic for specified ports.
On the MobaXterm window navigate to Tools > MobaKeyGen if the SSH Key Generator window is closed. Click Load and browse the local system location of the saved private key.
The public key is displayed once the loading is complete.
-
Open a new session once the information is saved
-
Provide the public IP Address, username and your private key
-
For the public IP Address, provide IP Address from VM Instances console
-
For the private key, browse the local system location of the saved private key
-
-
If all the SSH options are configured correctly, log in to the VM is successful