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

preview_player
Показать описание
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

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.
Рекомендации по теме
Комментарии
Автор

Have you ever been locked out of your Google Compute Engine virtual machine? 🤔

DataSlayerMedia
Автор

Would appreciate if you mention the pages which u r referring for the links. Since the pages keeps changing, its difficult to keep track of the topics

valourinarms
Автор

Hi I am trying to connect VM to VSCODE. But can't find the place to paste my public key in the console. Any ideas?

ninalee
Автор

Thanks for awesome video! I can't find wp-config.php on google cloud to change permissions. Maybe you have any advice how I can find it, because sudo chmod 664 and sudo chmod 660 didn' work for me anymore...

demo