skip to Main Content

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.

Failed to connect to your instance

3

Answers


  1. 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).

    Login or Signup to reply.
  2. Ensure the following have been properly configured:

    • Public subnet route table
    • Public subnet route table associations
    • Public subnet routes

    Also ensure your security group has been configured for ssh communication (port 22)

    Login or Signup to reply.
  3. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search