Stopping Amazon DCV sessions - Amazon DCV

Stopping Amazon DCV sessions

A console session can only be stopped by the administrator on Windows Amazon DCV servers, and the root user on Linux Amazon DCV servers. A virtual session on a Linux Amazon DCV server can only be stopped by the root user or the Amazon DCV user who created it.

Note

Stopping a session closes all of the applications that are running in the session.

To stop a console or virtual session on a Windows or Linux Amazon DCV server, use the dcv close-session command and specify the unique session ID.

Syntax

dcv close-session session-id

Example

For example, the following command stops a session with the unique ID of my-session.

dcv close-session my-session