Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

SSH not working on Google Cloud VM (UFW BLOCK, Guest Agent Issues)

Jahi
New Member

I am unable to access my Google Cloud VM via SSH. When I try to connect, I get a "Connection Failed" error stating that SSH on port 22 is not accessible. I have already checked the firewall rules, ensured SSH is allowed, and restarted the SSH service, but the issue persists. The UFW logs show "BLOCK" messages, and the Google guest agent is failing to update SSH keys. I also tried mounting the disk on another VM to manually update the keys, but I still cannot connect. How can I regain SSH access to my VM?

1 2 277