Overview of ssh-mcp-server
mainssh-mcp-server is an MCP (Model Context Protocol) server that enables AI assistants to execute remote SSH commands through a standardized interface. It acts as a bridge, allowing AI models to interact with remote servers securely without exposing raw SSH credentials to the model itself.
Key capabilities include:
- Secure Connections: Supports password and private key authentication (including passphrased keys).
- Command Control: Uses blacklists and whitelists to restrict the range of executable commands.
- Dual Transport Modes: Supports both
execandshelltransports, making it compatible with direct connections and jump hosts/bastion servers. - File Transfer: Supports bidirectional file transfers (uploading local files to the server and downloading files from the server).
- Credential Isolation: SSH credentials are managed locally and never shared with the AI model.
- Zero-Install Execution: Can be run directly via
npx.