push_ssh
Establishes a named SSH layer that becomes the default for later tools, reusing existing connections to the same target and validating hosts; jump hosts pass through without consuming a layer.
Instructions
建立命名 ssh 层(成为默认层——后续工具缺省落它)。同落点幂等复用(reused=true 返回既有层,不重复建连)+ 落点校验(宁重连不错主机)。跳板传 jump(-J 不占层)。
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>"
},
"name": "push_ssh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | 私钥文件路径(-i) | |
| host | Yes | 目标主机(user@host 或 ssh config 别名) | |
| jump | No | 跳板(-J:途径机不占层) | |
| name | No | 层名(缺省=host;注册表内唯一,显式寻址用) | |
| port | No | SSH 端口(非 22 时指定) | |
| user | No | 登录用户名 |