Connect to EC2 instance

Connect to EC2 instance

  1. On the EC2 instances interface, select the instance you just created and click Connect connect ec2

  2. Switch to the Session Manager tab and click Connect connect ec2

  3. Successfully connect to the instance connect ec2

  4. Run the command sudo -su ec2-user to switch from user to ec2-user, and have root administrative rights for the instance connect ec2

  5. Then run the command ping 8.8.8.8 (IP address of Google’s DNS server) to test whether our instance can connect to the outside internet through igw or not connect ec2