Skip to main content

ssh_exec

Run a command on a VM via SSH. Returns stdout, stderr, and exit code. No interactive commands or stdin. 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.