In this lab you will learn how to create your first security group, allow SSH connection from your public IP address, create your first EC2 instance and connect to your EC2 instance with your SSH client PuTTY
Prerequisite: Having a valid AWS Account (Follow the step in this link to create an AWS Account) How to Sign Up for a new Amazon Web Services Account
Open the page: https://aws.amazon.com/account/
Create a security group and open port 22
Type and select VPC in the search box
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture1-6.png)
On the menu select Security groups under Security
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture2-6.png)
Click Create Security group
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture3-6.png)
Give your security group a name and description
Select the default VPC / Click Add rule / Select SSH / Source My IP / Click Create Security Group
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture4-6.png)
Confirm your new Security Group is create
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture5-5.png)
Launch an EC2 instance
Type and select EC2 in your search box
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture6-5.png)
In the dashboard select Launch instance
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture7-5.png)
Enter the name of your EC2 instance / Select the Key pair create on the previous labs / Select the new Security group / Click Launch instance
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture8-4.png)
Confirm you new EC2 instance is up and running
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture9-4.png)
Download and install SSH Client PuTTY in your computer
Copy the public IP address of the EC2 instance
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture10-4.png)
Launch SSH Client PuTTY
On Host Name enter ec2-user@your_public_IP address
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture11-4.png)
In the PuTTY Client select SSH / Auth / Browse and Load the Key pair created in the previous labs
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture12-2.png)
Click on Open
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture13-1.png)
Click on Yes to Accept and trust the host
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture14-1.png)
Confirm you successfully access your EC2 instance
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture15-1.png)
Cleanup your lab by terminating the EC2 instance
Select your EC2 instance / Under Instance state / Click on Terminate instance
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture16.png)
Confirm you wan to terminate your instance / Click Terminate
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture17.png)
Confirm the instance is terminated in the instance state
![](https://exceedthecloud.com/wp-content/uploads/2023/02/Picture18.png)
Credit: Azeez
Leave a Reply