POST SSH Service Accounts
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 method is used to create a new SSH service account in Keyfactor Command. This method returns HTTP 200 OK on a success with details for the new SSH service account.
Before adding a new SSH service account, be sure that you have added at least one server group (see POST SSH Server Groups) and that your Keyfactor Bash Orchestrator The Bash Orchestrator, one of Keyfactor's suite of orchestrators, is used to discover and manage SSH keys across an enterprise. has been registered and approved in Keyfactor Command (see GET Agents).
SSH actions are affected by ownership on the server group
Table 814: POST SSH Service Accounts Input Parameters
Name | In | Description |
---|---|---|
KeyGenerationRequest | Body |
Required. An object that set the information to include in the SSH key pair request. |
User | Body |
Required. An object containing information about the service account user. |
ClientHostname | Body | Required. A string indicating the client hostname reference for the service account key. This field is used for reference only and does not need to match an actual client hostname. It is used when building the full user name of the service account key for mapping to Linux logons for publishing to Linux servers (e.g., username@client_hostname). The naming convention is to use the hostname of the server on which the application that will use the private key resides (e.g., appsrvr12), but you can put anything you like in this field (e.g., cheesetoast). |
ServerGroupId | Body | Required. A string indicating the Keyfactor Command reference GUID for the SSH server group for the service account. The server group is used to control who has access in Keyfactor Command to the service account key. It does not limit where the key can be published. See SSH Permissions in the Keyfactor Command Reference Guide for more information. |
Table 815: POST SSH Service Accounts Response Data
Name | Description |
---|---|
ID | An integer indicating the Keyfactor Command reference ID for the SSH service account. This ID is automatically set by Keyfactor Command. |
Client Hostname | A string indicating the client hostname reference for the service account key. This field is used for reference only and does not need to match an actual client hostname. It is used when building the full user name of the service account key for mapping to Linux logons for publishing to Linux servers (e.g., username@client_hostname). The naming convention is to enter the hostname of the server on which the application that will use the private key resides (e.g., appsrvr12), but you can put anything you like in this field (e.g., cheesetoast). |
Server Group |
An object that indicates the SSH server group for the service account. The server group is used to control who has access in Keyfactor Command to the service account key. It does not limit where the key can be published. See SSH Permissions in the Keyfactor Command Reference Guide for more information. |
User |
An object containing information about the service account user. |
Username | A string indicating the full username of the service account. The username is made up of the user name and ClientHostname entered when the service account is created (e.g., myapp@appsrvr75). |
LogonIds | An array of integers indicating the Keyfactor Command reference IDs of Linux logons that are associated with the service account in order to publish the service account's public key to the servers on which the logons are located. |



Was this page helpful? Provide Feedback