bighelpdiscord
bighelpdiscord

Reputation: 111

Unable to connect to Google Cloud VM via SSH

I've been unable to connect to my VM via SSH since changing persistent disks. I had a VM set up with a Balance Persistent Disk 10gb and wanted to switch to a Standard 30gb. My procedure as been:

  1. Create a disk image
  2. Shutdown current VM and deleted the bootdisk
  3. Loaded the saved disk image and switched to a Standard Persistent Disk

Now I am unable to connect via SSH. In Activity I'm getting this message: Invalid argument (HTTP 400): Supplied fingerprint does not match current metadata fingerprint. I've added the custom Metadata enable-os login: TRUE. Tech is still trying to figure it out.

Has anyone encountered this issue?

Upvotes: 2

Views: 3962

Answers (2)

bighelpdiscord
bighelpdiscord

Reputation: 111

Second attempt with support - they determined the disk image was corrupt.

Upvotes: 1

JaysonM
JaysonM

Reputation: 656

Tried on my end changing persistent disk to standard disk and with same metadata you've added and it worked in my end using below steps.

  1. Compute Engine
  2. Disk
  3. Select VM's Disk
  4. Create Image
  5. Location same with seleted VM
  6. Save
  7. VM Instance > Select VM > Down > Edit
  8. Detached Boot Disk
  9. Configure Boot Disk > Custom Images > Select Project > Select Image > Boot disk Type to Standard > Select
  10. Make Sure to check Allow http/https traffic

Worth to try also below:

  1. Recreate image from disk, found some other fingerprint errors due to disk issue and was solve by remounting and fixing fstab key.
  2. Generate/Create SSH Key and add on VM Instance > edit
  3. Guide on Connecting Linux VM using advance method

Upvotes: 0

Related Questions