Check connections

  1. Access to EC2

    • Select Instances
    • Select EC2 Public
    • Select Connect

EC2

  1. In the tab Connect to instance :
    • Select SSH Client
    • Copy the address sample

EC2

  1. Prepare the key
    • Move downloaded key to ~/.ssh , this is the directory that specializes in storing ssh keys

EC2

  1. Before connect, we have to chmod 400 for key, then based on the sample ssh address in step 2, change the local key address to ssh to EC2 Public

EC2

  1. Try ping to internet, ping to 2 EC2 in Private Subnet

EC2 EC2

  1. Copy the key from local to EC2 Public using the scp command, used to ssh to EC2 Private

EC2

  1. Check if you have received the key in EC2 public

EC2

  1. Before ssh, remember to chmod 400 for the key

EC2

  1. Use ssh key to 2 Private instances

EC2 EC2

  1. Try pinging the internet from EC2 Private

EC2

  1. As a result, we cannot ping, in the next step we will configure.