dsh-ssh-logs
Run the following command in DeepSeek Harness:
dsh plugin install 452926826/dsh-ssh-logs
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install 452926826/dsh-ssh-logs in your terminal to install; source code is available at https://github.com/452926826/dsh-ssh-logs
About this plugin
When you ask an AI assistant to help debug a production incident, the most natural next step is to let it read the server logs. The catch is that handing a model an SSH session capable of running arbitrary commands is far too risky. dsh-ssh-logs closes that gap by wrapping log access into three strictly read-only MCP tools – list servers, read a log, and search a log – so the model can only operate on the fixed aliases and allowlisted directories you configure in advance, and can never pick an arbitrary host, execute an arbitrary command, or modify a remote file.
On the security front, the plugin enforces BatchMode and StrictHostKeyChecking with an explicit known_hosts file, generates only fixed head, tail, sed, and grep -F command templates, and rejects absolute paths, backslashes, and directory traversal. Each request is capped at 5 000 lines or 1 000 search matches, with a default output of 128 KiB and a hard ceiling of 4 MiB. Password prompts, sudo, SFTP writes, deletion, and any form of file modification are simply unsupported, eliminating privilege-escalation risk at the protocol level.
This plugin is built for engineers and ops staff who rely on DeepSeek Harness for everyday development and incident triage. Register a handful of frequently used servers with dedicated read-only accounts and log root directories in a single YAML config, restart the service, and you can let your AI assistant safely browse and grep server logs without ever copying terminal output by hand.
Use Cases
- A production service throws errors and you ask the AI to pull and grep the relevant log lines
- Searching for a keyword across multiple servers in a single conversation
- Reviewing a specific time window of logs during an incident post-mortem
Best For
- Developers working with DeepSeek Harness on a daily basis
- Ops engineers who check server logs frequently
- Teams that want AI-assisted log access without exposing full SSH permissions
Related Plugins
Free web search plugin for DeepSeek Harness with web search, X search, and page fetch; no signup or API key required, with automatic multi-engine failover.
AnySearch-powered web and vertical search plugin for DeepSeek Harness, offering real-time search, cleaned URL content, concurrent batch search via native web_search/web_fetch, no API key required.
Pixel-perfect webpage clone tool that uses an agent harness to turn any webpage into a scored, full-page React replica.
A bilingual cost-tracking plugin for DeepSeek Harness with session/daily cost, budget, official & custom provider balance, coding plan quotas, peak/off-peak pricing alerts, and history stats.