ssh_add_host
Persist a new uniquely named SSH host shared by Codex and Claude, storing password or key credentials for later remote sessions. Returns a stable host ID and version.
Instructions
Persist a new uniquely named SSH host shared by Codex and Claude. For password auth provide credential; for key auth provide privateKeyPath and optional credential passphrase. Credentials are remembered by default; remember:false uses this MCP connection only. Returns stable ID and version. No interactive dialog.
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": {
"name": "<name>",
"hostname": "<hostname>",
"username": "<username>",
"auth": "<auth>"
},
"name": "ssh_add_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | Yes | ||
| name | Yes | ||
| port | No | ||
| hostname | Yes | ||
| remember | No | ||
| username | Yes | ||
| credential | No | SSH password, private-key passphrase, or sudo password. Never echoed in results. | |
| jumpHostId | No | ||
| privateKeyPath | No |