ssh_test_connection
Verify SSH host reachability and authentication by attempting a connection and running a trivial command. Use to confirm credentials after adding a host.
Instructions
Verify that a host is reachable and authentication succeeds.
Attempts to open an SSH session and run a trivial echo command. Use this immediately after ssh_add_host to confirm your credentials are correct.
Args: alias: Host alias to test (must exist in inventory).
Returns: '✓ Connected …' on success, or an actionable error on failure.
Examples: - After adding a new host: ssh_test_connection(alias='webserver') - Debugging a connection issue: ssh_test_connection(alias='db-prod')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |