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, 2019 in GCP by Sam
• 4,880 points
259 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, 2019 by Sirajul
• 44,350 points

Related Questions In GCP

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

How to add a regional persistent disk to a VM instance on GCP?

You must first create the regional persistent ...READ MORE

answered Oct 18, 2019 in GCP by Sirajul
• 44,350 points
117 views
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, 2019 in GCP by Sirajul
• 44,350 points
54 views
0 votes
1 answer

How to add a PTR record to my VM instance on gcp?

If your VM instance uses the primary ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 44,350 points
84 views