Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSH back to AWS Lightsail after UFW enabling

I've enabled the UFW service without allowing SSH access before then logging off.

I am now unable to ssh back to the instance.

The steps I have already taken:

  • Made a snapshot and create a new instance from it
like image 280
M Kepster Avatar asked Oct 22 '25 07:10

M Kepster


1 Answers

You could create a snapshot and use it to create another new instance, and add sudo service ufw stop to the launch script.

enter image description here

enter image description here

like image 87
Soo Xiao Tong Avatar answered Oct 24 '25 03:10

Soo Xiao Tong



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!