- Newest
- Most votes
- Most comments
You might find the following tutorial helpful: Tutorial: Complete the configuration required to connect to your instance using EC2 Instance Connect
Hello.
Could you show me the detailed rules of the security group you have set up in EC2?
If you are using EC2 Instance Connect, you should also ensure that you have met all the prerequisites listed in the following documentation:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html
A common problem with connections using EC2 Instance Connect is that the security group does not allow connections for "EC2_INSTANCE_CONNECT".
When using EC2 Instance Connect, you need to configure it to allow the IP address of "EC2_INSTANCE_CONNECT" instead of your own IP address.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html#ec2-instance-connect-setup-security-group
Relevant content
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
thank you for your response i configured ssh port as per below sgr-00679f39d61b6a3a6
SSH Inbound rule 1 Type TCP 22
Custom Inbound rule 1 Source 0.0.0.0/0
i doing same process on another account ,it is connect successfully,but in first didn't work
By the way, is it possible to connect via SSH from Teraterm or terminal instead of EC2 Instance Connect? If the connection fails, you may want to check the route table settings for the subnet where EC2 is running and check whether a route to the internet gateway is set.