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.

Solution: SSH and become root

Solution: SSH and become root

From the course: Docker on AWS

Start my 1-month free trial

Solution: SSH and become root

(energetic music) - [Instructor] If we actually wanted to exec into one of the running containers, first we have to have an environment we can even get into, and our ecs-ec2-ssh instance, or rather ECS environment, is one of those. So we can go ahead and connect into that, or dive into the Cluster view, get to the ECS Instances within that Cluster view, and we can find one of those instances. We can open this in a new tab. Now can jump over to that tab. So here we have our running instance. We'll go ahead and grab our public IP. And as long as we had previously set up our security group to allow SSH access, we can then go to a terminal session and we can ssh, can pass the identity ~/.ssh/id_rsa which is my default identity, and ec2-user@ Command + V to paste in the IP address which'll let us log in. Good, so we're able to get into the node. Now we can become root, I do sudo su, S-U-D-O space S-U space and then minus,…

Contents