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)
Open the Amazon Systems Manager console at https://console.amazonaws.cn/systems-manager/
. -
In the navigation pane, choose Session Manager.
-
For Sessions, choose the option button to the left of the session you want to end.
-
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.