POST SSH Logons Access
POST SSH Logons Access
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/Access method is used to associate one or more SSH keys with a Linux logon by mapping the logon to one or more users or service accounts. This method returns HTTP 200 OK on a success with a list of the users associated with the logon.
SSH actions are affected by ownership on the server group
Table 504: POST SSH Logons Access Input Parameters
| Name | In | Description |
|---|---|---|
| LogonId | Body |
Required. An integer indicating the Keyfactor Command reference ID for the SSH logon. Use the GET /SSH/Logons method (see GET SSH Logons) to retrieve a list of all the SSH logons to determine the logon'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]
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. See SSH in the Keyfactor Command Reference Guide for more information about users and service accounts. |
Table 505: POST SSH Logons Access Response Data
| Name | Description |
|---|---|
| LogonId | An integer indicating the Keyfactor Command reference ID for the SSH logon. |
| LogonName |
A string indicating the user's logon name on the Linux server. |
| Users |
An array of key/value pairs providing information about the users mapped to the logon. |