Changed AWS EC2 firewall rule and locked out of ssh
I'm afraid not. Other than restoring from a snapshot or reinstalling from scratch your best option is probably using another EC2 instance to fix the file.
- Shut down your SLES instance (don't terminate)
- Note down what the root volume device name is (probably
/dev/sda1
or/dev/xvda
) - Detach the volume and attach to another helper instance.
- Fix the firewall file.
- Unmount and detach the volume from the helper instance and re-attach to the original one under the correct name (
/dev/sda1
or/dev/xvda
) - Start up and SSH in :)
Hope that helps.