1 Answer
- Newest
- Most votes
- Most comments
1
- Ensure my IP is not a public one and tried different IPs to connect
This is going to be the source of at least one of your problems, your EC2 instance needs to have a public IP address and it is that public IP address that you need to connect to.
Just as importantly, Windows won't normally accept SSH connections (without some severe customisations). The normal way would be to use RDP over port 3389, which you already have opened.
Relevant content
- asked 5 years ago
- asked 8 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 23 days ago
Thank you for pointing that out and for these suggestions! I've checked my IP and it starts from "76", so it's a public addr now. I just tried again on my Mac Terminal using the command "ssh -i [key].pem ec2-user@[ec2 public DNS]", but it failed (same error). Any other things I need to check?
In your question you said:
This is your problem, you cannot SSH to a Windows instance.
Thank you all. That's exactly where the problem comes from. I can easily use RDP to connect. Appreciate!