Free AWS Service
Pre-requisite: AWS Account
✅ 1. Sign in to AWS Console
Go to https://console.aws.amazon.com, and log in.
✅ 2. Open the EC2 Dashboard
- Search for EC2 in the “Find Services” box
- Click EC2
✅ 3. Launch an Instance
Click the “Launch instance” button.
✅ 4. Configure Instance Settings
🧾 Name and Tags
- Name your instance: e.g.,
MyUbuntuServer
🖥️ Amazon Machine Image (AMI)
- Select: Ubuntu
- Choose the latest Ubuntu Server 22.04 LTS (HVM), SSD Volume Type
- Free-tier eligible
🧮 Instance Type
- Choose: t2.micro (free-tier eligible)
🔐 Key pair (login)
- If you already have a key pair, select it.
- If not, click “Create new key pair”:
- Name it
- Choose RSA and .pem
- Download and save the
.pem
file safely (you’ll need it to SSH later)
📶 Network settings
- Allow SSH (port 22) from:
- My IP (recommended) or
- Anywhere (less secure)
💾 Storage
- Default 8 GiB is fine (can be adjusted)
✅ 5. Launch the Instance
Click “Launch instance”
Wait a few moments for the instance to start up.
✅ 6. Connect to Your Server (via SSH)
Step 1: Get Public IP
- In the EC2 dashboard, click your instance
- Copy the Public IPv4 address
Step 2: Open Terminal (Linux/macOS) or Git Bash (Windows)
Navigate to where your .pem
file is and run:
bashCopiarEditarchmod 400 your-key.pem
ssh -i "your-key.pem" ubuntu@your-ec2-public-ip
Example:
bashCopiarEditarssh -i "my-aws-key.pem" ubuntu@54.212.123.456
Accept the prompt to connect.
🎉 You’re now logged in to your Ubuntu EC2 server!