Skip to main content
Glama

MCP SSH Session

by devnullvoid

execute_command

Execute commands on remote SSH hosts using persistent connections. Connect to servers via hostname, IP, or SSH config aliases to run commands and manage remote systems.

Instructions

Execute a command on an SSH host using a persistent session.

The host parameter can be either a hostname/IP or an SSH config alias. If an SSH config alias is provided, configuration will be read from ~/.ssh/config.

Args: host: Hostname, IP address, or SSH config alias (e.g., "myserver") command: Command to execute username: SSH username (optional, will use SSH config or current user) password: Password (optional) key_filename: Path to SSH key file (optional, will use SSH config) port: SSH port (optional, will use SSH config or default 22)

Input Schema

NameRequiredDescriptionDefault
commandYes
hostYes
key_filenameNo
passwordNo
portNo
usernameNo

Input Schema (JSON Schema)

{ "properties": { "command": { "type": "string" }, "host": { "type": "string" }, "key_filename": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null }, "password": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null }, "port": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null }, "username": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null } }, "required": [ "host", "command" ], "type": "object" }

Other Tools from MCP SSH Session

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/devnullvoid/mcp-ssh-session'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server