Set Up Your AWS Account:
1. Go to aws.amazon.com.
2. Sign in to the AWS Management Console. If you don't have an account, you can
create a new one.
Sign In Using Your Email Address
Once logged in, go to:
1. Services → Compute → Click on “ EC2”
Launch an Instance:
1. Click on "Launch Instance."
2. Give a name to your instance.
3. Select the OS you want to create.
4. Select an instance type based on your requirements. The t2.micro type is a great
choice for beginners as it falls under the AWS Free Tier.
Create a New Key Pair:
1. Scroll down and create a new key pair.
2. Give the key pair a name.
3. Select the key pair type (RSA).
4. Choose the private key file format (.PPK).
5. Click on "Create key pair."
After this, a key file (.PPK) will be downloaded, which is used to connect to your instance.
Launch the Instance:
1. Scroll down and click on “Launch Instance.”
2. After successfully initiating the launch of the instance, scroll down and click on “View
All Instances.”
You have now successfully created a Linux machine on AWS.
Connect to Your AWS Machine:
1. Download PuTTY from putty.org.
Open PuTTY:
1. Open the putty.exe file.
1. In the “Host Name (or IP address)” field, enter the public IP address or DNS name of
your instance which is you get as below.
Select The Machine → Go To “Connect” → SSH Client → Copy the highlighted DNS
name (as mention in below Images). → Paste it into the hostname(as mention in
below Images).
In the left panel, navigate to: Connection → SSH → Auth → Credentials
In the "Private key file for authentication" section, browse and select the downloaded .ppk
file.
Click "Open" to start the session.
You have now successfully created a Linux machine on AWS and connected to it using SSH
with PuTTY.