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
• 2,500 points
30 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
• 31,540 points

Related Questions In GCP

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

Connect to an instance as a root user in GCP

If you configured an instance to allow ...READ MORE

answered Sep 24 in GCP by Sirajul
• 31,540 points
22 views
0 votes
1 answer