Launch EC2 Instance

Step 1: Go to Services from there choose EC2 service then from the Amazon EC2 console, click on Launch Instance.

a9

Step 2: Choose Ubuntu AMI

a10

Step 3: Select Free Tier t2 micro as Instance type for learning purpose as it comes under the Free Tier.

a11

Step 4: Configure Instance Details

a12

Step 5: Add Storage i.e. Elastic Block Storage

a13

Step 6: Add a tag if you want to, which means provide the name to your instance.

a14

Step 7: Create Security Group i.e. firewall

a15

Note: Make sure port 22 is open.

Step 8: Review your instance’s configuration

a16

Step 9: Create Key pair and download for secure login

a17

Step 10: Finally, login to your Instance

Select your instance and click on connect.

a18

a19

Use the chmod command to make sure your private key(.pem) file isn’t publicly viewable.

chmod 400 /path_to_key/my_key.pem

Finally, SSH to your EC2 instance

ssh -i /path_to_key/my_key.pem user_name@public_dns_name
a20

Subscribe Now