Connect to your Linux instance with Amazon Systems Manager Session Manager - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Connect to your Linux instance with Amazon Systems Manager Session Manager

Session Manager is a fully managed Amazon Systems Manager capability that lets you manage your Amazon EC2 instances through an interactive one-click browser-based shell or through the Amazon CLI. You can use Session Manager to start a session with an instance in your account. After the session is started, you can run bash commands as you would through any other connection type. For more information about Session Manager, see Amazon Systems Manager Session Manager in the Amazon Systems Manager User Guide.

Prerequisites

Before attempting to connect to an instance using Session Manager, ensure that the necessary setup steps have been completed. For more information and instructions, see Setting up Session Manager.

To connect to a Linux instance using Session Manager with the Amazon EC2 console
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  2. In the navigation pane, choose Instances.

  3. Select the instance and choose Connect.

  4. Choose Session Manager.

  5. Choose Connect.

Troubleshooting

If you receive an error that you’re not authorized to perform one or more Systems Manager actions (ssm:command-name), then you must update your policies to allow you to start sessions from the Amazon EC2 console. For more information, see Sample IAM policies for Session Manager in the Amazon Systems Manager User Guide.