2 Answers
- Newest
- Most votes
- Most comments
1
Hello.
I was able to SSH to an m2 instance type EC2 using my AWS account via EC2 Instance Connect.
Please check whether the EC2 security group is set to allow EC2 Instance Connect's IP range via SSH.
Search for "EC2_INSTANCE_CONNECT" to find the IP address.
Try registering the IP range of the region where your EC2 is running in the security group.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html#ec2-instance-connect-setup-security-group
https://ip-ranges.amazonaws.com/ip-ranges.json
0
Hello,
This issue occurs when there are missing network configurations. Below are the possibilities to resolve the issue:
- Once check the Security group to allow the port 22 that is SSH for accessing Remote Work. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-linux-inst-ssh.html
- Check the VPC Configurations whether it has an Network gateway connection either Internet Gateway or Nat gateway. https://docs.aws.amazon.com/vpc/latest/userguide/modify-vpcs.html
By following this you can resolve your issue.
Thanks:)
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated a month ago
