0

We own a VM instances in Google Cloud with ubuntu OS but suddenly we cannot connect to the instance via SSH. I have checked the Firewall and the port is enabled for all of the instances.

Watching the logs we are getting the error UFW BLOCK.

Please, could you gide me what to do?

Thanks.

1 Answers1

0

Looks like someone installed UFW but forgot 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

Notauser
  • 295
  • Greetings, inf fact there was something that unset the UFW rule. I found an startup script that let me set a user and password to connect to the instance via serial console. Thanks for you answer. – Luis Fernando Olmedo Mar 21 '19 at 00:13