Search⌘ K
AI Features

Network Security: Set up SSM for SSH Access

Explore how to configure AWS Systems Manager Session Manager to enable secure SSH access to EC2 instances without exposing them to the internet. Understand the role of NAT Gateway, the need for specific IAM policies, and how to manage remote connections via the AWS CLI or Console. This lesson guides you through locking down network access while maintaining effective remote management.

We'll cover the following...

Objective

Make our instances inaccessible from the internet.

Steps

  • Set up SSM for SSH access.

In this section, we’re going to make our EC2 instances inaccessible from the internet. The instances will be able to reach the internet using a NAT gateway, but the network will not allow anything from the internet to reach the instances without going through the load balancer.

🔍 Once we make our instances use a NAT gateway to connect to the internet, an additional data transfer charge (currently ...