generate_ssh_key
Create a new RSA or DSA SSH keypair directly on the cPanel server, specifying key name, bit length, and optional passphrase for secure access.
Instructions
Generate a new RSA or DSA SSH keypair directly on the cPanel server
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>"
},
"name": "generate_ssh_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bits | No | Key length in bits | 2048 |
| name | Yes | Name/identifier for the new SSH key | |
| key_type | No | Cryptographic key type | rsa |
| passphrase | No | Passphrase to protect the private key |