write_ssh_config
Writes or updates an SSH host entry in the local config file. Replaces an existing entry with the same alias to prepare for deployment commands.
Instructions
Write (or update) a Host entry in the local ~/.ssh/config file. If an entry with the same alias already exists it is replaced. Useful for setting up SSH config before running deployment commands.
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": {
"alias": "<alias>",
"hostname": "<hostname>",
"user": "<user>"
},
"name": "write_ssh_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | SSH port (default 22) | |
| user | Yes | SSH username | |
| alias | Yes | SSH host alias (used as the Host value in ~/.ssh/config) | |
| hostname | Yes | Actual hostname or IP address | |
| extraOptions | No | Additional SSH config options as key-value pairs | |
| identityFile | No | Path to the private key file (e.g. ~/.ssh/id_rsa) |