ssh_test_connection
Verifies SSH connectivity to a host and identifies its operating system. If the host is unreachable or lacks SSH, returns an RDP one-liner script for alternative access.
Instructions
Test SSH connection & probe target OS. If server is unreachable/uninstalled, outputs RDP 1-liner script.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"host": "<host>",
"username": "<username>"
},
"name": "ssh_test_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Target hostname or IP address | |
| port | No | SSH port (default 22) | |
| password | No | SSH password | |
| username | Yes | SSH username | |
| privateKeyPath | No | Path to private key file |