From the course: Docker on AWS

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Enable SSH to EC2 for ECS

Enable SSH to EC2 for ECS

From the course: Docker on AWS

Start my 1-month free trial

Enable SSH to EC2 for ECS

- [Narrator] If we want to create an EC2 ECS cluster that also allows us to log into the services, we do have one additional step that we have to do, and that is, we have to actually add the SSH key pair, or rather the SSH public key, into the EC2 key pairs environment. We can do that actually quite simply. So, we do need to get to our terminal session, and if we can cat the public key for that particular session that we want. So, in my case, that would be in my home directory under tilde, slash, dot, S-S-H, slash, I-D, underscore, R-S-A, dot, pub. That's the default key. You might have a specific key for EC2 only, but we're going to go ahead and grab the key pair ID. We don't need the little part at the end. That's not important. We'll then go back into our web environment. We're going to open up the services page. Let's open EC2 on a new tab, jump into that. Then we can select the key pairs section here. We can see…

Contents