Find and view SSH sessions

Find and view SSH sessions

출처: HashiCorp Boundary docs Boundary converts recorded SSH sessions into an asciicast format so that you can play back interactive SSH sessions. Make sure to refer to the SSH recording format documentation to understand potential limitations to the asciicast format. You can view a list of all recorded SSH sessions, or if you know the ID of a specific recorded session, you can find any channels associated with that recording.

Find all recorded SSH sessions

Complete the following steps to find all recorded sessions using the CLI.

  1. Authenticate to Boundary in the CLI.
  2. Type the following command to view a list of all recorded sessions:boundary session-recordings list -recursive Boundary displays a list of all recorded sessions by scope.

Find a specific recorded SSH session by ID

If you have the ID of a recorded session, you can use the following command to list the connections and channels associated with a session recording.

boundary
 session-recordings
 read
 -id
 <
i
d
>

Download recorded SSH session channels

You can download recorded session channels from a session recording. For SSH sessions, downloadable channels can include shell and exec session recordings. The channel ID is required for the download. If you have the ID of a recorded session, you can use the following command to list the connections and channels associated with a session recording.

boundary
 session-recordings
 read
 -id
 <
i
d
>

Complete the following steps to download a recorded session channel:

  1. Authenticate to Boundary in the CLI.
  2. Type the following command to download a recorded session channel. Substitute the ID of the channel for chr_1234567890:boundary session-recordings download -id chr_1234567890

Find all recorded SSH sessions

You can find all recorded sessions in the UI from the global scope.

  1. Log in to Boundary.
  2. Select Session Recordings in the navigation pane.The Session Recordings page displays the created time, user, project, target, and duration of the recording.

View SSH session recording details

  1. Select View next to the session recording you want to view.The details page has information related to the session recording and links to related information like user, target, and storage bucket.

Play back recorded SSH session channels

  1. Select Play next to the channel recording you want to view.The recorded session appears in the media player. Click the Play button located at the bottom of the media player to watch the recording.If a recorded session channel does not support playback, a View button is shown instead of a Play button. The details page displays information specific to that channel even when playback is unavailable.

Refer to the following topics for more information:

  • Session recording
  • SSH session recording format