How to connect to an EC2 instance without a key pair / Access EC2 with the AWS SSM Session Manager

preview_player
Показать описание
How to connect to an EC2 instance without a key pair. I will show you how you can access an Amazon EC2 instance even if you've lost the .pem file, using the AWS Systems Manager (SSM) Session Manager.

ABOUT THE AWS SSM AGENT:
AWS Systems Manager Agent (SSM Agent) is Amazon software that can be installed and configured on an EC2 instance, an on-premises server, or a virtual machine (VM). SSM Agent makes it possible for Systems Manager to update, manage, and configure these resources.

ABOUT AWS SSM SESSION MANAGER:
Session Manager is a fully managed AWS Systems Manager capability that lets you manage your Amazon Amazon EC2 instances, on-premises instances, and virtual machines (VMs) through an interactive one-click browser-based shell or through the AWS Command Line Interface (AWS CLI). Session Manager provides secure and auditable instance management without the need to open inbound ports, maintain bastion hosts, or manage SSH keys.

You need the following three things to connect to an instance using SSM Session Manager:

1: Make sure that the AWS Systems Manager Agent is running on the instance
2: Make sure that the instance can communicate with the AWS Systems Manager
3: Use the AWS Systems Manager Session Manager to connect to the instance

I am going to show you all three steps. how to check if the SSM Agent is installed, how to configure your EC2 instance to communicate with SSM, and how to connect to the instance using the SSSM Session Manager.

ABOUT THIS VIDEO:
In this video, you will learn how you can …

TIMECODES:
0:00 - Intro
0:28 - The 3 things you need to connect to an EC2 instance using SSM Session Manager
0:50 - Demo: Check if SSM agent is preinstalled
1:35 - Demo: Add an EC2 instance profile to communicate with AWS Systems Manager
2:50 - Demo: Connect to an EC2 instance using the SSM Session Manager

#AWS #In5MinutesOrLess

LINKS TO LEARN MORE:

FOLLOW ME ONLINE:

ABOUT THIS CHANNEL
My name's Dennis and I share tips to help you grow your Amazon Web Services (AWS) skills, build well-architected applications, and learn the best tools and skills required to help you on your cloud journey. If you're a developer, business owner or hobbyist who is interested in learning about AWS and the cloud make sure to subscribe for helpful training videos.

I’m AWS Certified (SA Pro, DevOps Pro, and Security Specialist) and have been actively developing for the cloud since 2011. Over that time I've helped countless developers and businesses build their applications in the cloud through training, content, and consulting. I'm also directly working at AWS as a Developer Advocate and Technical Evangelist, taking care of the builder community in Germany, Austria, and Switzerland.

If you have any questions or want to request a topic or tutorial just leave a comment on any of my videos and I'll see what I can do to answer it.

Thanks for watching, welcome to the cloud!
Рекомендации по теме
Комментарии
Автор

20 minute long videos did not solve my issue. You did it in a fantastic way in just 4 min. Thank you.

samwukong
Автор

If you want more content like this, like and subscribe!

DTraub
Автор

your videos are so to the point. Takes away the newbie fear

titilopeodubiro
Автор

clear, simple, brief .... KEEP UP THE AWESOME 👍👍👍👍👍

monnombre
Автор

The video has given me good exposure on SSM, all my doubts cleared. Thanks Dennis for the wonderful session.

anbalagansunai
Автор

Wow! I just thought I was out of luck when a pem file went missing. I've been playing around with AWS SSM Session Manager a little and didn't consider it for this specific use case. Thanks for sharing this Dennis!

JennaPederson
Автор

Thank u dennis brother... its helps alot to me ... love from india

SatyamGambhir
Автор

Thanks. Just saved me a lot of time with a straight forward tutorial

weybansky
Автор

Your videos are so helpful sir, after connecting to the instance using ssm manager, how to create a new-key pair sir?

imeanittoyou
Автор

Alhamdulillah, thanks for the information. this really helped me.

vidyelipsis
Автор

Hi Dennis, great tutorial.
Can you do a tutorial showing how we can SSH and SCP once we are connected via SSM :)

eakokel
Автор

Great, However I've followed same steps and attached required IAM role also but not able to see my instance in session manager page. Pls help

SurajChauhan-xurw
Автор

suppose i don't have any keys and agent is also not installed then in that case how to regain the access?

sanoj
Автор

how time it take reflect in ssm to launch it.
?

RayRaman
Автор

I am using WordPress bitnami on EC2 instance. In the platform details, it shows Ubuntu(Inferred). How do I use SSM with that??

taqimushaidi
Автор

And if you dont have ssm-agent installed because you have a centos linux your screwed!!!!

thebodz