Remote SSH Operations
tm_remotePerform SSH tasks on a single remote host: run commands, transfer files, manage keys, and configure SSH settings.
Instructions
Single-host SSH operations with shared connection params.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cfg | No | SSH config path. | /root/.ssh/config |
| cmd | No | Shell command (run_command). | |
| key | No | Key path (test_key_auth/setup_passwordless). | |
| host | No | Remote host. | |
| lcfg | No | Local SSH config (copy_ssh_config). | |
| port | No | Port. | |
| rcfg | No | Remote SSH config (copy_ssh_config). | /root/.ssh/config |
| user | No | Username. | |
| lpath | No | Local file path (send_file/receive_file). | |
| proxy | No | Teleport proxy. | |
| rpath | No | Remote file path (send_file/receive_file). | |
| action | Yes | Action: 'run_command', 'send_file', 'receive_file', 'check_ssh', 'test_key_auth', 'setup_passwordless', 'copy_ssh_config', 'rotate_key', 'remove_host_key' | |
| id_file | No | Private key path. | /app/.ssh/id_ed25519 |
| new_key | No | New private key path (rotate_key). | |
| timeout | No | Command timeout in seconds. | |
| key_type | No | Key type: rsa or ed25519 (setup_passwordless/rotate_key). | ed25519 |
| password | No | Password. | |
| certificate | No | Teleport certificate. | |
| known_hosts | No | Known hosts path (remove_host_key). | /root/.ssh/known_hosts |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||