POST SSH Service Accounts Rotate ID
The POST /SSH The SSH (secure shell) protocol provides for secure connections between computers. It provides several options for authentication, including public key, and protects the communications with strong encryption./ServiceAccounts/Rotate/{id} method is used to generate a new key pair
In asymmetric cryptography, public keys are used together in a key pair with a private key. The private key is retained by the key's creator while the public key is widely distributed to any user or target needing to interact with the holder of the private key. in Keyfactor Command for an existing SSH service account. This method returns HTTP 200 OK on a success with details for the new key pair of the SSH service account, including the private key
Private keys are used in cryptography (symmetric and asymmetric) to encrypt or sign content. In asymmetric cryptography, they are used together in a key pair with a public key. The private or secret key is retained by the key's creator, making it highly secure..
SSH actions are affected by ownership on the server group
Table 721: GET SSH Service Accounts Rotate {id} Input Parameters
Name | In | Description |
---|---|---|
id | Path | Required. The Keyfactor Command reference ID for the SSH service account key for which to retrieve key information. Use the GET /SSH/ServiceAccounts method (see GET SSH Service Accounts) to retrieve a list of all the SSH service accounts to determine the service account's key ID. Tip: Be sure to use the ID of the service account itself and not the ID of the service account user or service account's key within the service account. For example, notice the following record returned from a GET /SSH/ServiceAccounts: Copy
It contains three IDs:
|
KeyType | Body |
Required. A string indicating the cryptographic algorithm used to generate the SSH key. |
PrivateKeyFormat | Body |
Required. A string indicating the format to use for the downloadable private key. |
KeyLength | Body | Required*. An integer indicating the key length for the SSH key. The key length supported depends on the key type selected. Keyfactor Command supports 256 bits for Ed25519 and ECDSA and 2048 or 4096 bits for RSA. This field is optional if the KeyType is set to ECDSA or Ed25519 and required if the KeyType is set to RSA. |
Body | Required. A string containing the email address of the administrator or group of administrators responsible for managing the key. This email address is used to alert the administrator or group of administrators when the key pair is approaching the end of its lifetime. | |
Password | Body | Required. A string that sets a password used to secure the private key of the SSH key pair for download. |
Comment | Body | An string containing the user-defined descriptive comment, if any, on the key. Although entry of an email address in the comment field of an SSH key is traditional, this is not a required format. The comment may can contain any characters supported for string fields, including spaces and most punctuation marks. |
Table 722: GET SSH Service Accounts Rotate {id} Response Data
Name | Description |
---|---|
ID | An integer indicating the Keyfactor Command reference ID for the SSH service account key. This ID is automatically set by Keyfactor Command. |
Fingerprint |
A string indicating the fingerprint of the public key. Each SSH public key has a single cryptographic fingerprint that can be used to uniquely identify the key. |
PublicKey | A string indicating the public key of the key pair for the SSH service account. |
PrivateKey | A string indicating the private key of the key pair for the SSH service account. |
KeyType |
A string indicating the cryptographic algorithm used to generate the SSH key. Possible values are:
|
KeyLength | An integer indicating the key length for the SSH key. The key length supported depends on the key type selected. Keyfactor Command supports 256 bits for Ed25519 and ECDSA and 2048 or 4096 bits for RSA. |
Comments | An array of strings containing one or more strings with the user-defined descriptive comments, if any, on the key. Although entry of an email address in the comment field of an SSH key is traditional, this is not a required format. The comment may can contain any characters supported for string fields, including spaces and most punctuation marks. Keys created through the Keyfactor Command Management Portal or with the POST /SSH/ServiceAccounts method will contain only one string in the array. |
LogonCount | An integer indicating the number of Linux logons associated with the SSH key pair. |


