π Day 5 of Learning DevOps + Cloud βοΈ


π Today's Journey
Today started with excitement β and a few hiccups.
The plan:
Launch an EC2 Instance β Named it
"my-first-instance"
.Connect via Git Bash using SSH.
Practice essential Linux commands inside AWS EC2.
π₯ Step 1: Launching EC2 Instance
Using AWS Management Console:
Selected Amazon Linux 2 AMI
Chose t2.micro instance (free-tier)
Created a new key pair for SSH access
Security group allowed port 22 (SSH)
Named the instance "my-first-instance"
Reference: AWS EC2 Documentation
π Step 2: Connecting via SSH (Git Bash)
Command I used:
ssh -i my-key.pem ec2-user@<public-ip>
β οΈ Faced errors like:
Permission denied (publickey) β Fixed by setting correct permissions:
chmod 400 my-key.pem
Host key verification failed β Solved by removing old known hosts entry:
ssh-keygen -R <public-ip>
After ~15 minutes of trial and errorβ¦ Connected successfully! π
Reference: Connect to EC2 via SSH
π Step 3: Practicing Linux Commands
Once inside EC2, I explored basic commands:
Command | Description |
ls | List files & directories |
pwd | Show current directory |
mkdir bundle | Create folder named bundle |
cd bundle/ | Move inside folder |
touch file.txt | Create empty file |
cd .. | Go back |
vi piyush.txt | Create/edit text file |
cat piyush.txt | View file content |
top | Monitor system processes |
nproc | Show CPU cores count |
df -h | Show disk usage in human-readable format |
exit | Leave SSH session |
Reference: Linux Commands Cheat Sheet
π Key Learnings Today
SSH errors are common, but solvable with patience.
File permissions (
chmod
) are crucial for SSH security.Knowing a few Linux commands already makes working inside EC2 easier.
Cloud computing is not just clicking buttons β the command line is powerful.
π Additional Resources
π‘ Tip: Always keep your .pem
file safe and never share it publicly β itβs your private key to access your instance.
#100DaysOfCloud #AWS #DevOps #Linux #LearningInPublic
Subscribe to my newsletter
Read articles from Priyanshu Bhatt directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Priyanshu Bhatt
Priyanshu Bhatt
π Hey there! I'm a final-year BCA student π¨βπ» diving deep into MERN Stack π | Python Django π | React βοΈ | Learning JavaScript + DSA π‘ Passionate about building, breaking & learning every single day βοΈπ» Sharing my dev journey as a #CodeNewbie π¬