ssh: connect to host 18.217.164.53 port 22: Operation timed out

I have read every related questions but could not find solution yet. I am still new to AWS but managed to set up an instance and deploy my website. My uwf status was inactive so I hit sudo ufw enable but I forgot to hit sudo ufw allow ssh and now I can not use ssh when I press ssh -i /Users/xyz/files/webshop.pem [email protected] in my mac terminal. Is there any rapid way to manage the issue without creating a new instance on AWS?

Any help would be greatly appreciated (I have to demo my applcation on Thursady).


Solution 1:

See https://stackoverflow.com/a/11776183/10266059 which addresses exactly this use case, where SSH access is no longer available.