ssh_tool
Run remote commands and transfer files over SSH with persistent sessions. Supports connect, exec, upload, download, and directory listing.
Instructions
SSH client with persistent sessions. Operations: connect (host/username/password or privateKeyPath), exec (run command), upload/download (SFTP), list (remote dir), disconnect. sessionId required for all ops.
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": {
"operation": "<operation>",
"sessionId": "<sessionId>"
},
"name": "ssh_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| port | No | ||
| command | No | ||
| password | No | ||
| username | No | ||
| localPath | No | ||
| operation | Yes | SSH operation | |
| sessionId | Yes | Session identifier | |
| passphrase | No | ||
| remotePath | No | ||
| privateKeyPath | No |