ssh_connect_by_config_host
Connect to a remote host by specifying a hostname defined in your SSH config file. Supports optional authentication with username, password, or private key.
Instructions
使用SSH config文件中的主机名建立连接
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": {
"config_host": "<config_host>"
},
"name": "ssh_connect_by_config_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config_host | Yes | SSH config文件中的主机名 | |
| username | No | 可选用户名,覆盖config中的设置 | |
| password | No | 可选密码 | |
| private_key | No | 可选私钥文件路径 | |
| private_key_password | No | 可选私钥密码 |