Skip to main content
Glama

ssh_execute_script

Execute multi-line scripts or code blocks on remote SSH servers. Handles code blocks with triple backticks automatically for bash, Python, Node.js and other interpreters.

Instructions

Execute a multi-line script or code block on an SSH connection. Automatically handles code blocks with triple backticks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptYesScript or code block to execute. Can include triple backticks (```bash, ```python, etc.)
interpreterNoScript interpreter to use (bash, sh, python, python3, node, etc.)bash
connectionIdNoConnection ID to usedefault
timeoutNoScript timeout in milliseconds
workingDirNoWorking directory to execute script in (optional)

Latest Blog Posts

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/zibdie/SSH-MCP-Server'

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