# Create SSH key pair This function generates an SSH key pair. Endpoint: GET /generatesshkeypair Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `abort_on_existing_key` (integer) Whether to abort the function if the user already has a key with the same name. * — Abort. * — Continue. Enum: 0, 1 - `algorithm` (string) The key's encryption algorithm. The parameter defaults to the system's default algorithm. Enum: "rsa2", "dsa" - `bits` (integer) The key's bits: * — The DSA algorithm's default value. * * — The RSA algorithm's default value. Enum: 1024, 2048, 4096 - `comment` (string) A comment. Example: "NoComment" - `name` (string) The key's filename. This parameter defaults to if the algorithm is RSA, and if the algorithm is DSA. Example: "KeyFile" - `passphrase` (string) The key's secure passphrase. Example: "123456luggage" ## Response 200 fields (application/json): - `data` (object) - `data.fingerprint` (string,null) The key's [MD5](https://en.wikipedia.org/wiki/MD5) fingerprint. - `data.name` (string) The key's filename. Example: "KeyFile" - `metadata` (object) - `metadata.command` (string) The method name called. Example: "generatesshkeypair" - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "OK" - `metadata.result` (integer) * — Success. * — Failed. Check the field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1