Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.machine0.io/llms.txt

Use this file to discover all available pages before exploring further.

ssh_exec

Run a command on a VM via SSH. Returns stdout, stderr, and exit code. No interactive commands or stdin.
ParameterTypeRequiredDescription
machine_idUUIDnoVM ID (provide one of machine_id or machine_name)
machine_namestringnoVM name
commandstringyesShell command (max 65,536 chars)
timeoutintegernoSeconds (default: 30, max: 300)
usernamestringnoSSH username override
Requires a managed SSH key. VMs created with public keys will fail. If you need to switch, destroy the VM and recreate it with a managed key ID in sshKeyId.