Skip to main content
Glama

ssh

Execute commands on remote servers via SSH with support for password, key-based authentication, and ProxyJump for bastion host access. Sessions are pooled and automatically expire after idle periods.

Instructions

Execute commands on a remote server via SSH. Supports password and key-based authentication. SSH agent is used as fallback on Unix. Sessions are automatically pooled and reused for the same host:port:user combination. Idle sessions expire after 10 minutes. Supports IPv6 addresses and ProxyJump (jump_host) for reaching servers through bastion hosts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYesSSH server hostname or IP address (IPv4 or IPv6),required
portNoSSH port number. Default: 22
userYesSSH username,required
passwordNoPassword for authentication
key_fileNoPath to SSH private key file (e.g. ~/.ssh/id_rsa)
passphraseNoPassphrase for encrypted private key
use_agentNoUse SSH agent for authentication. Default: true if no other auth method specified
commandNoCommand to execute on the remote server
disconnectNoClose the SSH session for this host (no command needed)
host_key_checkNoHost key verification: strict (requires known_hosts), tofu (trust on first use, default), none (insecure)
timeout_secNoCommand execution timeout in seconds. Default: 30, Max: 300
jump_hostNoJump/bastion host for ProxyJump (hostname or IP). When set, connects through this host to reach the target
jump_portNoJump host SSH port. Default: 22
jump_userNoJump host username. Default: same as user
jump_passwordNoJump host password. Default: same as password
jump_key_fileNoJump host SSH private key file. Default: same as key_file
jump_passphraseNoJump host key passphrase. Default: same as passphrase

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/knewstimek/agent-tool'

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