How to Connect to Google Compute Engine Virtual Machine with SSH or puTTY on Mac

Published: 01 March 2021
on channel: Data Slayer
15,668
216

This tutorial will show you how to connect via SSH or puTTY to your Google Cloud Compute Engine Virtual Machine. In this video we setup a virtual machine, we then generate a local RSA Public/Private Key Pair. We then add the public key to the virtual machine meta data and proceed to SSH into that virtual machine. This approach can be used by any major operating system. On Mac I use the local terminal but linux would allow for the same process and Windows could use PowerShell or the Linux subsystem available on Windows 10.

Create SSH RSA Asymmetric Public/Private Key
ssh-keygen -t rsa -f ~/.ssh/[KEY_FILENAME] -C [USERNAME]

Connect to Compute Engine Instance
ssh -i PATH_TO_PRIVATE_KEY USERNAME@EXTERNAL_IP

Intro 0:00 - 0:32
Create Compute Engine Virtual Machine 0:32 - 0:58
Create SSH RSA Keys 0:58 - 2:05
Add SSH Key to Compute Engine Meta Data 2:05 - 2:25
Connect to VM from Local Terminal 2:25 - 3:20

#gcp #ssh #puTTY

Have a question about a topic covered in a video or need help? Schedule a micro consultation using the link below. We Offer an 80% Money Back Guarantee.
https://calendly.com/session-with-tim


Watch video How to Connect to Google Compute Engine Virtual Machine with SSH or puTTY on Mac online without registration, duration hours minute second in high quality. This video was added by user Data Slayer 01 March 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 15,668 once and liked it 216 people.