ssh_connect_raw
Directly connect to target assets via a bastion host by specifying connection parameters such as host, user, and password, enabling temporary SSH sessions without relying on config.json.
Instructions
直接指定参数连接(不依赖 config.json),用于临时连接。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ssh_connect_raw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 堡垒机地址 | service.rrzuji.net |
| name | No | 会话名称(可选) | |
| port | No | 堡垒机端口 | |
| user | No | 堡垒机用户名 | xiaolinxin |
| proxy | No | SOCKS5 代理地址 | |
| search | No | 搜索字符串,如 /39.108.73.45 | /39.108.73.45 |
| timeout | No | 连接超时秒数 | |
| key_path | No | SSH 私钥路径(auth_type=key 时使用) | |
| password | No | 堡垒机密码 | |
| auth_type | No | 认证方式 (password/key) | password |
| server_id | No | 目标资产 ID | 1 |
| target_dir | No | 登录后工作目录 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |