1

After I have created a Virtual Machine that runs latest Ubuntu LTS I want to connect to it using SSH.

When I login to it I get this screen:

enter image description here

I get a new code from g.co/sc

enter image description here

When I enter that code into the SSH-in-browser the same screen appears again.

What am I doing wrong?

1) Setup of Virtual Machine

Machine Configuration

  • Type: E2 Standard 4 (4 vCPU, 16 GB RAM)
  • Display Device: Enable

Boot disk

  • OS: Ubuntu LTS x86/64

Identity and API access

  • Firewall: Allow HTTPS traffic

Security

  • Shielded VM: Turn on Secure Boot

VM Access

  • Control VM access through IAM permissions
  • Require 2-Step Verification

Custom metadata

  • enable-oslogin: true
  • enable-oslogin-2fa: true

2) Permissions for vm

I have added myself to the following permissions:

  • Compute Admin
  • Compute Instance Admin
  • Compute OS Admin Login
  • Compute OS Login
  • Compute Viewer
  • Owner
4
  • 1
    Suggest to disable the IP check. Under the security codes section, there is a check box "Allow security codes with remote access", by following the below steps in the Admin console: In the Admin console, go to Menu and then [Security] then [Authentication and then2-step verification], Under the security codes section, there is a check box Allow security codes with remote access. Jun 16 at 14:02
  • Have you tried the above comment and it helped you to resolve your issue? Jun 19 at 4:28
  • This worked. Thank you.
    – Europa
    Jun 20 at 11:24
  • Glad to hear that. The same provided as an answer. Feel free to Accept and upvote the answer for better community visibility. Jun 21 at 2:33

1 Answer 1

2

To resolve your issue, disable the IP check. Under the security codes section, there is a check box Allow security codes with remote access, you can do by following the below steps in the Admin console: In the Admin console, go to Menu and then [Security] then [Authentication and then2-step verification], Under the security codes section, there is a check box Allow security codes with remote access.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .