Hi thanks for reading,
I usually connect to my instance no problem. For example:
mymac:~ ssh i- path/to/my/key.pem ubuntu@ec2-really-long-public-dns
This worked yesterday, however today the same command does not work. I always update IPv4 in my security group to allow SSH on port 22 with my public IPv4 .
mymac:~ curl ifconfig.me
I also update my CNAME and A record file so that the website is accessible online.
However despite the instance domain is online on the internet. When i open my security group to accept traffic on ports 80 and 443 with my IPv4 I can access the website.
I just so not know what is going on.
When I run terminal to connect
mymac:~ ssh -vvv i- path/to/my/key.pem ubuntu@ec2-really-long-public-dns
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to ubuntu@ec2-really-long-public-dns port 22.
ssh: connect to host ec2-really-long-public-dns port 22: Operation timed out
Any ideas? I've followed https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#TroubleshootingInstancesConnectionTimeout as best as I can but no success.
Also I had another ec2 instance which i cannot set up on ssh either but did work yesterday, i am not sure what may have happened? I check my router and my network is not stopping port 22 TCP connections, no network firewall.