cmd-mcp-server

execute_ssh_command

Execute a command on a remote server via SSH. Commands run in a persistent SSH session by default. Use newSession: true to run in a new session.

Input Schema

NameRequiredDescriptionDefault
commandYes
hostYes
newSessionNo
passwordNo
portNo
privateKeyNo
usernameYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "command": { "type": "string" }, "host": { "type": "string" }, "newSession": { "type": "boolean" }, "password": { "type": "string" }, "port": { "default": 22, "type": "number" }, "privateKey": { "type": "string" }, "username": { "type": "string" } }, "required": [ "host", "username", "command" ], "type": "object" }

Other Tools