POST SSH Logons
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./Logons method is used to create a new Linux logon in Keyfactor Command and, for servers in inventory and publish policy mode, publish it out to a Linux server. The logon can optionally be associated with one or more SSH keys by mapping the logon to one or more users or service accounts during creation. This method returns HTTP 200 OK on a success with details for the new SSH logon.
SSH actions are affected by ownership on the server group
Table 670: POST SSH Logons Input Parameters
Name | In | Description |
---|---|---|
Username | Body | Required. A string indicating the user's logon name on the Linux server. |
ServerId | Body |
Required. An integer indicating the Keyfactor Command reference ID of the server on which the SSH logon should be created. Use the GET /SSH/Servers method (see GET SSH Servers) to retrieve a list of all the SSH servers to determine the server's ID. |
UserIds | Body |
An array of integers indicating the Keyfactor Command reference IDs for the users and/or service accounts with which the logon should be associated, provided in the following format: [4,7,19]
See SSH in the Keyfactor Command Reference Guide for more information about users and service accounts. Use the GET /SSH/Users method (see GET SSH Users) to retrieve a list of all the users (including service accounts) created in Keyfactor Command to determine a user's ID. |
Table 671: POST SSH Logons Response Data
Name | Description |
---|---|
ID | An integer indicating the Keyfactor Command reference ID for the SSH logon. |
Username |
A string indicating the user's logon name on the Linux server. |
Server |
An object containing details about the server on which the SSH logon resides. |
KeyCount | An integer indicating the number of SSH keys associated with the Linux logons. |
Access |
An array of objects providing information about the users mapped to the logon. |


