Skip to main content
Glama

ssh_exec

Execute shell commands on remote servers through persistent SSH sessions. Run commands in background or with custom timeouts for secure remote management.

Instructions

Execute a command on a connected SSH session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesSession ID from ssh_connect
commandYesShell command to execute
timeout_msNoCommand timeout in milliseconds
backgroundNoRun command in background

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/code-pumpkin/remote-ssh-mcp'

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