🚀 What if you could connect to your EC2 instance
without any SSH key pair, without opening port 22
and without Putty at all?
That is exactly what AWS Systems Manager Session Manager
allows you to do — and in this video I'll show you
the complete setup step by step!
I'll walk you through attaching the right IAM role
with SSM policy to your EC2 instance, creating a brand
new EC2 instance without any key pair and connecting
to it directly from the AWS console — no SSH needed!
This is one of the most practical and modern ways
to connect to EC2 instances used by real DevOps teams
in production environments today!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHY SESSION MANAGER IS BETTER THAN SSH IN PRODUCTION
Traditional SSH connection requires:
→ A key pair that needs to be created and stored safely
→ Port 22 open in your Security Group
→ Putty or terminal installed on your machine
→ Risk of key pair being lost, stolen or compromised
If your key pair gets lost — you lose access to your instance.
If port 22 is open — your instance is exposed to the internet.
AWS Systems Manager Session Manager solves all of this:
→ No key pair needed at all
→ No port 22 required in Security Group
→ Connect directly from AWS console in browser
→ All session activity is logged for audit purposes
→ Access controlled entirely through IAM policies
→ Much more secure and manageable at scale
This is why modern AWS production environments
are moving away from SSH and adopting Session Manager.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 WHAT YOU WILL LEARN IN THIS VIDEO
✅ What is AWS Systems Manager Session Manager
✅ Why Session Manager is more secure than traditional SSH
✅ What IAM role is needed for Session Manager to work
✅ How to create and attach IAM role with SSM policy to EC2
✅ How to create a new EC2 instance without any key pair
✅ How to connect to EC2 using Session Manager from AWS console
✅ How to verify you are inside your instance without SSH
✅ Common mistakes when setting up Session Manager
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 WHO IS THIS VIDEO FOR
This video is perfect for you if you are:
👉 A DevOps engineer who wants to connect to EC2 more securely
👉 A developer who lost their key pair and cannot access their instance
👉 Someone who wants to avoid managing SSH keys across multiple instances
👉 A cloud engineer learning modern AWS best practices
👉 Anyone who finds Putty and key pair management painful
👉 AWS beginners who want to learn the modern way to connect to EC2
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 HOW SESSION MANAGER WORKS — COMPLETE FLOW
Step 1 — Create IAM Role with SSM Policy
→ Go to IAM in AWS Console
→ Create a new role for EC2 service
→ Attach AmazonSSMManagedInstanceCore policy
→ This policy allows EC2 to communicate with SSM service
Step 2 — Create EC2 Instance Without Key Pair
→ Launch a new EC2 instance from AWS console
→ Skip key pair creation — select No key pair option
→ Attach the IAM role created in Step 1
→ No need to open port 22 in Security Group
→ Launch the instance normally
Step 3 — Connect Using Session Manager
→ Go to your EC2 instance in AWS Console
→ Click Connect button
→ Select Session Manager tab
→ Click Connect — browser opens a terminal session
→ You are now inside your EC2 instance
→ No SSH, no Putty, no key pair needed at all
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ COMMON MISTAKES TO AVOID
→ Forgetting to attach IAM role to EC2 instance
Session Manager tab will be greyed out without it
→ Using wrong SSM policy
Must use AmazonSSMManagedInstanceCore specifically
→ Trying to connect immediately after launch
Wait 2 to 3 minutes for SSM agent to register with AWS
→ Using an old AMI that does not have SSM agent pre-installed
Amazon Linux 2 and Amazon Linux 2023 have it by default
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 SUBSCRIBE TO ayushbuildstech
If you are serious about learning AWS and DevOps
with real hands on tutorials —
Subscribe to ayushbuildstech and hit the bell icon so you
never miss a video!
Every video on this channel covers:
→ Real hands on demos so you actually learn by doing
→ Clear step by step explanations for all levels
→ Modern AWS and DevOps practices used in production
→ Interview preparation content for DevOps and cloud roles
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👍 FOUND THIS HELPFUL?
If this video helped you connect to EC2 without SSH —
smash the Like button! It helps this video reach more
engineers who need this content.
💬 COMMENT BELOW:
Were you able to connect to your EC2 instance without
a key pair? Comment YES below!
If you got stuck anywhere drop your error in comments
and I will help you fix it!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
#AWS #AWSEC2 #SessionManager #AWSSystemsManager
#AWSNoSSH #DevOps #AWSTutorial #ayushbuildstech #devops #awsbeginners #awsec2