SSH MCP Server provides secure remote access and command execution capabilities through the Model Context Protocol. It allows AI assistants to execute SSH commands on remote servers using stored credentials, with a SQLite database for persistent credential management. The implementation includes tools for executing commands, adding/removing credentials, and listing available connections - making it particularly valuable for system administration tasks and remote server management without leaving the conversation interface.
暂无评论. 成为第一个评论的人!
登录以参与讨论
Save a new SSH credential with parameters: name (string), host (string), username (string), privateKeyPath (string).
List all stored SSH credential records.
Delete an existing SSH credential by name. Parameter: name (string).
Run a shell command using SSH. Parameters: credentialName (string), command (string), timeout (number).
Run an argv-style command array over SSH. Parameter: credentialName (string), command (array of strings).
Copy a file over SFTP. Parameters: credentialName (string), localPath (string), remotePath (string), direction (string).
Copy directories or larger trees using rsync with the same transfer shape.
Start an interactive SSH session.
Send data to an active SSH session.
Read data from an active SSH session.
End an active SSH session.
List all active SSH sessions.
Start a local or remote port-forwarding tunnel.
List all active SSH tunnels.
Stop an active SSH tunnel.