Hi I am trying to connect my EC2 instance for opening CLI but unfortunately I am getting error:
Failed to connect to your instance and my IP address is also not working http://54.179.118.182/
Please help me how can I can resolve this.
Failed to connect to your instance
We were unable to connect to your instance. Make sure that your instance network settings are
configured correctly for EC2 Instance Connect. For more information, check Task 1 under the Set
up EC2 Instance Connect AWS documentation.
3
Answers
If you’re using Private AMI, you need to install ec2-instance-connect
to your AMI in order to connect with EC2 Instance Connect (SSH connection via AWS).
Ensure the following have been properly configured:
Also ensure your security group has been configured for ssh communication (port 22)
If you are from windows try removing previously added (ECDSA) to the list of known hosts. from know host file located in .ssh folder in users/your username.