ssh_connect
Open an SSH session to a remote server with password or key authentication, returning a session ID for command execution and file transfers.
Instructions
Establish an SSH connection to a remote server. Returns a session ID for subsequent operations.
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_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Hostname or IP address of the SSH server | |
| port | No | SSH port (default: 22) | |
| password | No | Password for authentication (use this OR privateKey/privateKeyPath) | |
| username | Yes | Username for SSH authentication | |
| passphrase | No | Passphrase for encrypted private key | |
| privateKey | No | Private key content as string (use this OR password OR privateKeyPath) | |
| privateKeyPath | No | Path to private key file (use this OR password OR privateKey) |