How to SSH into Private VM in GCP

Sdílet
Vložit
  • čas přidán 19. 07. 2024
  • One way to connect to a virtual machine (VM) is via SSH. To connect to a VM using SSH we need:
    ‧ The IP address of the VM
    ‧ A key or some sort of credentials
    ‧ And a network that connect our machine to the remote one
    In this video we are going to see how we can connect to a VM in Google Cloud even if machine doesn't have a public IP. We are going to do this by creating a VPC with a subnet with no internet access and we are going to SSH into it.
    This is possible thanks to Identity-Aware Proxy (IAP).
    cloud.google.com/compute/docs...
    Chapters:
    00:00 Plan
    01:01 Create VPC and FW rule
    01:58 Verify from GCP Console
    02:35 Create the VM
    03:38 SSH via IAP tunnel
    03:58 Verify
    04:08 Recap
    #googlecloud #gcp #devsecops
    WHO AM I:
    Hey friends, welcome to my CZcams channel @outofdevops . If you're new my name is Anto, here I talk about software engineering and software engineers. Don't forget to comment like and subscribe 👍🏻.
    CZcams GEAR:
    🎥 My CZcams Camera Gear - kit.co/outofdevops
    MY SOCIAL LINKs:
    🐦 Twitter - / outofdevops
    📘 Facebook - / outofdevops
    📰 My blog - amasucci.com
    📸 Instagram - / outofdevops
    GET IN TOUCH:
    If you'd like to talk, I'd love to hear from you. Tweeting @OutOfDevOps directly will be the quickest way to get a response, but if your question is very long, feel free to email me at hi@OutOfDevOps.com.
    PS: Some of the links in this description are affiliate links that I get a kickback from 😜

Komentáře • 2

  • @Kevin_Knights
    @Kevin_Knights Před 3 měsíci +1

    Thanks for sharing Antonio, this is super helpful! I was doing an exercise from the book “Journey to become a Google Cloud Machine Learning Engineer” and there was no mention of how to connect to the private vm without using the cloud console. So this video was a savior.