Back to Home
devnullvoid icon

mcp-ssh-session

Verified Safe

by devnullvoid

Overview

Enables AI agents to establish and manage persistent SSH sessions for remote command execution and file operations on servers and network devices.

Installation

Run Command
uvx mcp-ssh-session

Environment Variables

  • PYTHONUNBUFFERED
  • PYTHONDONTWRITEBYTECODE
  • DEBUG

Security Notes

The server implements several security measures including running as a non-root user in Docker, read-only mounting of SSH keys/config, output/file size limiting to prevent memory exhaustion, and using base64 for file content during `sudo tee` operations to mitigate shell injection risks. It also explicitly mentions and has fixed a prompt injection vulnerability. However, it uses Paramiko's `AutoAddPolicy` for host keys, which automatically accepts new host keys. While convenient for automation, this bypasses strict host key verification and can be susceptible to MITM attacks if the initial connection is compromised. This is a known trade-off clearly stated in the documentation.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassHigh
Avg Tokens2000
Stars0
Forks1
Last Update2025-12-12

Tags

SSHRemote ControlAutomationPersistent SessionsNetwork Device Management