ssh_history
Retrieve a log of SSH commands executed in the current session, filtered by server, success, or search text, with timestamps and durations. Supports up to 20 recent entries.
Instructions
Returns the in-memory log of SSH commands previously run through this server process during the current session, formatted with timestamps, server, duration, and success status. Purely local and read-only: it opens no SSH connection and does not persist across restarts. Optional filters narrow the results by server name, by success or failure, and by a search substring in the command text; limit defaults to 20 most recent entries. Does not expose command output, only the commands and their outcomes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of commands to show (default: 20) | |
| server | No | Filter by server name | |
| success | No | Filter by success/failure | |
| search | No | Search in commands |