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

Port 22 blocked

Hi, ufw has been enabled within my google cloud instance and now I can't access it via ssh, what can I do to enter through some recovery mode to disable ufw?

0 1 96
1 REPLY 1

Hi @jaalvarez2818 ,

Welcome to Google Cloud Community!

If you can't log in through ssh, you could try enabling serial port on the machine (it's right on top of the options while you are on edit mode)

FrancoGP_0-1729719401713.png

FrancoGP_1-1729719459050.png

After doing so and get access you should be able to either stop the service or whitelist port 22 again.

Good Luck!