I have been stuck on this since last night. The command I am using is ssh -i myfile.pem ubuntu@publicIP
.
I have changed the chmod
to 400.
When I run the command in my terminal it doesn't do anything and then after about 30 seconds I see:
ssh: connect to host 18.234.225.93 port 22: Operation timed out
For my security groups, inbound I have selected:
- Type=SSH Protocol=TCP Port=22 Destination=0.0.0.0/0 and
- Type=All ICMP - IPv4 Protocol=ICMP Port=All Destination=0.0.0.0/0
Outbound is the same but one more row for all traffic
at 0.0.0.0/0
I am unsure as to what else I can do to make this work, and whether or not this is an issue on my end or AWS. I have followed some step by step instruction that I have found on here such as How do I set up SSH access for an Amazon EC2 instance? but with little success. If anyone can help, I would appreciate it.