arvan_ssh_run
Execute a shell command on a remote server via SSH and retrieve its exit status, standard output, and standard error.
Instructions
Run a single command on a server over SSH and return its output.
Args:
host: Server IP or hostname (e.g. a freshly created server's public IP).
command: The shell command to execute.
username: SSH user (defaults to ARVAN_SSH_USER, typically root).
port: SSH port (default 22).
private_key: Inline PEM private key (overrides the configured default).
key_file: Path to a private key file.
password: Password auth (if not using a key).
passphrase: Passphrase for an encrypted private key.
known_hosts: Path to a known_hosts file; omit to skip host-key checks.
connect_timeout: Seconds to wait for the connection.
command_timeout: Seconds to wait for the command to finish.
Returns:
{exit_status, stdout, stderr, host}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| command | Yes | ||
| username | No | ||
| port | No | ||
| private_key | No | ||
| key_file | No | ||
| password | No | ||
| passphrase | No | ||
| known_hosts | No | ||
| connect_timeout | No | ||
| command_timeout | No |