End a session - Amazon Systems Manager
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.

End a session

You can use the Amazon Systems Manager console or the Amazon Command Line Interface (Amazon CLI) to end a session that you started in your account. If there is no user activity after 20 minutes, a session is ended. After a session is ended, it can't be resumed.

Ending a session (console)

You can use the Amazon Systems Manager console to end a session in your account.

To end a session (console)

  1. Open the Amazon Systems Manager console at https://console.amazonaws.cn/systems-manager/.

  2. In the navigation pane, choose Session Manager.

  3. For Sessions, choose the option button to the left of the session you want to end.

  4. Choose Terminate.

Ending a session (Amazon CLI)

To end a session using the Amazon CLI, run the following command. Replace session-id with your own information.

aws ssm terminate-session \ --session-id session-id

For more information about the terminate-session command, see terminate-session in the Amazon Systems Manager section of the Amazon CLI Command Reference.