Rotate Key
tm_remote_rotate_keyRotate an SSH key for a single remote host by providing the new private key path and key type, updating authentication for Tunnel Manager.
Instructions
Rotate key (tm_remote). Single-host SSH operations with shared connection params.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cfg | No | SSH config path; unset uses ~/.ssh/config. | |
| cmd | No | Shell command (run_command). | |
| key | No | Key path (test_key_auth/setup_passwordless). | |
| host | No | Inventory alias, or a raw hostname with an explicit user. | |
| lcfg | No | Local SSH config (copy_ssh_config). | |
| port | No | Port; unset uses the inventory alias, else 22. | |
| rcfg | No | Remote SSH config (copy_ssh_config). | /root/.ssh/config |
| user | No | Username; unset uses the inventory alias. | |
| lpath | No | Local file path (send_file/receive_file). | |
| proxy | No | Teleport proxy; unset uses the alias. | |
| rpath | No | Remote file path (send_file/receive_file). | |
| confirm | No | Confirm a destructive action (remove_host_key) without elicitation. | |
| id_file | No | Private key path; unset uses the alias. | |
| 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 |
| certificate | No | Teleport certificate; unset uses the alias. | |
| known_hosts | No | Known hosts path (remove_host_key). | /root/.ssh/known_hosts |
| password_ref | No | Runtime secret reference for the SSH password; unset uses the alias. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||