ssh_setup_key_auth
Generate a local SSH keypair, install the public key on a remote server, and save a key-based credential. Connects using an existing password-authenticated session to enable future passwordless logins for automated workflows.
Instructions
Generate a local SSH keypair, install the public key on the remote server, and save a key-based credential for future connections
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": {
"connection_name": "<connection_name>"
},
"name": "ssh_setup_key_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_name | Yes | Existing active SSH connection that authenticated with a password | |
| credential_name | No | Saved credential name for future key-based logins | |
| key_name | No | Local key filename stem. Defaults to credential_name or connection_name. | |
| key_comment | No | Comment appended to the generated public key | |
| overwrite_saved_credential | No | Overwrite an existing saved credential with the same credential_name |