Network error: Connection timed out for AWS

Please anyone knowledgable about AWS EC2 instant hosting, i need assistance with connecting to my instance using SSH and client like PUTTY and mobexterm

  1. I have my ip set to allow in my security groups
  2. I have elastic ip configure
  3. My domain can be accessed over the internet but not available using curl or other method and as such i cant install certbot
  4. I was in the process of trying to make my domain working using curl from the terminal and also installing SSL my mobexterm client got disconnected and can not connect back,
  5. Tried putty no way
  6. Ping my network not working, Network error: Connection timed out
    Please what is the solution

Is there an error message? If so then show it here. Exclude sensitive portions if appropriate.

Is there an error message? If so then show it here. Exclude sensitive portions if appropriate.

Is there an error message? If so then show it here. Exclude sensitive portions if appropriate.

1 Like

I wish there is, because the connection gets timed out, and pinging to my server not working aslovtime out, so is not an issue of ip or key pair, was working on it and it connects well only for it to disconnect and never get connected again over 24hrs now.

i have even edited my security group to all all ip, ssh, https, http, smtp, pointed my elastic ip address to a domain name, everything works fine on the web browser but not with ssh or connection to my instance

Firewall allowed for ssh (Port 22)?

from where precisely please, i enabled these in security groups, i also edited vcl and added rules to allow https and ssh.
My confusion is that this was working fine and i was ruining some groups and folder permission for ubuntu since it users root as direcory owner foe /var/www/html
Also i moved my sites to /var/www where o hosted two virtual host and posted their domains and root respectfully.
But suddenly I can’t connect anymore to my instance and the sites are still working on the browser

First Check is to telnet the server on port 22. if that does not work it’s a firewall issue. Ping is not working on AWS.

1 Like

Will try it and see

The problem was that i installed sfwu using the command line and then i allowed http and https but forgot to allow ssh 22/tcp

So when the already established connection got disconnected i couldn’t log back in again.

But is fine now and i have learned my lessons.

Thanks to everyone that contributed, you are just amazing people.

3 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.