How to disable ufw ?
Please help me I use Lightsail and set the firewall using Lightsail/ Manage/ Networking/ Ipv4 Firewall rules. There are SSH TCT 22, HTTP TCP 80, MySQL TCP 3306 etc.
When I failed open a web site on that Lightsail, I connected the instance using Putty
sudo ufw allow 'Apache Full' and sudo ufw enable.
Since then, I cannot access the instance in anyway. Nothing works !
How can I login to my instance ? Please Help
Since you cannot connect to your Lightsail instance via ssh or through the browser-based ssh client after enabling ufw. You can recover your instance by taking a snapshot of it if you did not create a backup on launch and create a new instance from it. When you launch the new instance via console add the following script as a launch script to disable ufw:
sudo service ufw stop
You can also use AWS CLI to launch the new instance from a snapshot by running the following command:
aws lightsail create-instances-from-snapshot --region <snapshot-region> --instance-snapshot-name <snapshot-name> --instance-names <new-instance-name> --availability-zone <preferred-AZ> --user-data 'sudo service ufw stop' --bundle-id <value>
Alternately, you can export your Lightsail snapshot to Amazon EC2 for further troubleshooting by following the steps here and here. Additionally, here is a video tutorial on how to export Lightsail instance to Amazon EC2 instance.
Hope this helps
lightsail ssh "connecting to instance..." can't connected to my instance with sshasked 3 months ago
AWS Lightsail Firewall doesn't open a port or something else is blocking itasked 10 months ago
Cannot SSH to Lightsail instance via AWS Console. Port 22 is open.Accepted Answerasked 3 months ago
Network Firewall sometimes misses L7asked 4 months ago
started ubuntu lightsail instance which creates the folders with hostusername:psaserv , My sftp create files ubuntu username. NOW BOTH CLASHINGAccepted Answerasked 7 months ago
How to open a portasked 2 months ago
Recognize BIND DNS and disregard Lightsail Networkingasked a year ago
set up jupyter lab in AWS lightsailasked a month ago
How to disable ufw ?asked 3 months ago
Server ports 80 and/or 443 are not publicly accessibleasked 3 months ago