mac_ssh_check
Verify SSH connectivity and key authentication to a remote Mac. If key auth fails, get the exact ssh-copy-id command to fix it.
Instructions
Test SSH connectivity + key auth to the remote Mac.
Runs whoami over SSH with BatchMode (no interactive prompts) and
verifies we land on the expected account. If key auth isn't set up,
returns the exact ssh-copy-id command to fix it.
Args: host: Mac hostname or IP (use the same address as the PAServer profile's Host field — see paserver_info). user: Mac user account. key_path: Optional explicit SSH private key path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| user | Yes | ||
| key_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |