Allows for establishing persistent SSH connections to Linux servers, enabling remote command execution, background process management, and file transfers via SFTP.
Allows for establishing persistent SSH connections to macOS servers, enabling remote command execution, background process management, and file transfers via SFTP.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@remote-ssh-mcpconnect to prod.example.com and check free disk space"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
remote-ssh-mcp
MCP server for persistent SSH sessions with native GUI credential prompts.
Features
π Persistent Sessions - Connections survive across multiple commands
π GUI Credential Prompts - Native dialogs on Linux/macOS/Windows
π File Transfer - Upload/download via SFTP
β±οΈ Background Commands - Run long tasks without blocking
π Session Reuse - Automatic connection pooling per host
π‘οΈ Secure - Per-process secrets, localhost-only helper
Installation
Quick Start
Add to your MCP client config:
That's it! Connect to servers and credentials will be prompted via native GUI.
Configuration
Environment Variables (Optional)
Skip GUI prompts by setting credentials:
Host Config File (Optional)
Create ~/.ssh/mcp-hosts.json:
Tools
Tool | Description |
| Connect to SSH server, returns session_id |
| Execute command (with optional background mode) |
| Read terminal output history |
| Close a session |
| List active sessions |
| Upload file via SFTP |
| Download file via SFTP |
Example Usage
GUI Requirements
For credential prompts:
Linux:
zenity(apt install zenity)macOS: Built-in (osascript)
Windows: Built-in (PowerShell)
Without GUI, use environment variables or config file.
Security
Credentials prompted via native OS dialogs
Never logged or written to disk
Per-process authentication tokens
Localhost-only credential helper
Sessions auto-expire after 15 min inactivity
License
MIT