I had access to AWS EC2 Ubuntu instance using ssh key throw the 22 port. Using this tutorial I installed and run the http server. At that moment I couldn’t open index.html remotely in the browser. Lately, I disconnected the server. Now I can see my page but I can’t login to my EC2. After scanning ports, you can see the port 22 is filtered. I asked my manager to reboot that instance but looks like apache autolaunched and port 22 for ssh is still filtered.
I didn’t install any tools like ApacheGUI.
How can I fix that? I need to open port 22.
NOTE: The [ping 18.188.22.177] has no success, but the page is still alive.
Thanks for your attention!
2
Answers
Sorry for the delay. I found the true issue. While configuring the ufw I missed to add SSH in the firewall, so ufw locking the ssh access. The only way to fix - is to get root access, or to ask technical support to do this. But we have already killed that instance and created new.
Thanks to everyone for your attention!
Make sure you have added ssh in the
inbound rules
for your security group. And allow the connections from your machine by adding your public IP (My IP
) in the column provided, or selectinganywhere
(which is not recommended as it raises security concerns).