Connect EC2 Instance

1. Enable SSH on the EC2

Click on the security group setting on the EC2 instance cloud.vn

Add SSH rule for the security group / Click Save rules cloud.vn

2. Connect EC2 via Instance Connect

Via EC2 Instance Dashboard, select your EC2 instance / Click Connect cloud.vn

Select EC2 Instance Connect / Enter user name (ec2-user) / Click Connect cloud.vn

AWS will open the web browser to manage your EC2 instance cloud.vn

3. Connect EC2 via SSH Client

Select SSH Client and you will see the guide:

  • From your computer, change mode for the key pair that you created before. Command: chmod 400 awstraining2021.pem

  • Connect your EC2 by using the SSH Command cloud.vn

Change mode & SSH cloud.vn

Successfully! cloud.vn

You can try some linux commands on the CLI.