Cannot connect to my VM instance on GCP via SSH.

0 votes
I have a VM instances in Google Cloud with ubuntu OS but suddenly I cannot connect to the instance via SSH.

I have checked the Firewall and the port is enabled for all of the instances.

The logs have registered the error UFW BLOCK.

Please, Can somebody guide me what to do?
Sep 27 in GCP by Sam
• 4,330 points
101 views

1 answer to this question.

0 votes

This might be because UFW is installed. In this case, you have to allow tcp:22 for SSH

You will have to connect to your instance using the serial console and allow SSH

sudo ufw allow ssh

This should do!

answered Sep 27 by Sirajul
• 40,980 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Connecting to windows VM instance on GCP.

You can connect to Windows instances by ...READ MORE

answered Nov 8 in GCP by Sirajul
• 40,980 points
24 views
0 votes
1 answer