2 Answers
- Newest
- Most votes
- Most comments
0
Sumit Kumar,
Could you kindly post snapshot of your errors? Firstly, check your EC2 is in proper state, i.e. running and accessible. Try to check the EC2 status in AWS console and connect to it using instance connect or via System Manager.
If it is accessible from AWS console, try to explore the following reasons.
- Key pair mismatch. You are using different keypair to login EC2. Need use the same keypair when you specified during launched the EC2 instance.
- Security group Issue: The default security group does not allow incoming SSH traffic from Internet. Check the security group settings and ensure that it allows incoming traffic on port 22 from your own IP address or add 0.0.0.0 for any IP address.
- Public DNS name or IP address. Especially when you stop the instance for a while and start again, the DNS name or IP may change.
- Network ACLs. Checked whether there is network ACL configued to block the access in VPC. You can enable VPC Flow to check the error messages in CloudWatch Logs.
answered 2 years ago
Your all requirements are fulfilled. But can't login
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 8 months ago
Hi sumit, is your SSH issue is resolved?? if yes please help what is exact reason and how to solve?