Back to Home
samerfarida icon

mcp-ssh-orchestrator

Verified Safe

by samerfarida

Overview

Provides a secure, policy-driven interface for AI assistants to execute SSH commands on remote servers with granular access control and comprehensive auditing.

Installation

Run Command
docker run -i --rm -v ~/mcp-ssh/config:/app/config:ro -v ~/mcp-ssh/keys:/app/keys:ro -v ~/mcp-ssh/secrets:/app/secrets:ro ghcr.io/samerfarida/mcp-ssh-orchestrator:latest

Environment Variables

  • MCP_SSH_CONFIG_DIR
  • MCP_SSH_KEYS_DIR
  • MCP_SSH_SECRETS_DIR
  • LOG_LEVEL
  • LOG_FORMAT
  • SSH_DEBUG
  • MCP_SSH_SECRET_*

Security Notes

This server exhibits an exceptionally strong commitment to security through a multi-layered defense-in-depth architecture. It actively prevents common attack vectors such as command injection (using `shlex.split`, explicit substring bans, command chain parsing, and normalization), path traversal (`os.path.abspath`, `os.path.isabs`, `os.path.normpath`, rejection of `..`, symlinks, and directories), DNS-based DoS (rate limiting, caching, timeouts), and MITM attacks (strict SSH host key verification with `paramiko.RejectPolicy`). Input validation is robustly applied to all user-controlled parameters, and all configuration files have size limits. The system enforces a 'deny-by-default' policy model, runs as a non-root user in Docker containers with read-only mounts, and provides comprehensive, structured JSON audit logs for security events and command execution. No `eval` or similar dangerous patterns are used without clear justification.

Similar Servers

Stats

Interest Score34
Security Score10
Cost ClassMedium
Avg Tokens5000
Stars3
Forks3
Last Update2025-12-01

Tags

mcpsshorchestrationsecuritypolicy