new developer here!
I just signed up for my EC2 Windows2022 instance and would like to connect it from my Mac (M2, Sonoma14.5) terminal using SSH, but all trials failed with the error: “ssh: connect to host ipaddr port 22: Operation timed out”.
Based on the previous posts regarding the same issue, I’ve tried a couple of things:
-
Add SSH Port22 into the EC2 security group rules, as well as ICMP protocols: Security Group Rules
-
Add SSH into EC2 ACL rules: ACL Inbound Rules, ACL Outbound Rules
-
Reboot and check the status of the instance (numerous times)
-
Ensure my IP is not a public one and try different IPs to connect
-
Ensure I’ve turned on the remote login option
-
Turn off the firewall on my Mac
However, after trying these, I still failed to connect via SSH and been stuck here for several days. Would you have any more ideas? I’ll appreciate though. Thank you!
Lucy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.