POST SSH Logons Access

The POST /SSHClosed 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.

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:
/ssh/server_admin/
OR
/ssh/enterprise_admin/

SSH actions are affected by ownership on the server group to which the server on which the logon exists belongs and limited for users with only the Server Admin (/ssh/server_admin/) role. For more information, see SSH Permissions.

Table 664: 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 for more information about users and service accounts.

Table 665: 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 objects providing information about the users mapped to the logon. ClosedShow user information.

Tip:  See the Keyfactor API Reference and Utility which provides a utility through which the Keyfactor APIClosed A set of functions to allow creation of applications. Keyfactor offers the Keyfactor API, which allows third-party software to integrate with the advanced certificate enrollment and management features of Keyfactor Command. endpoints can be called and results returned. It is intended to be used primarily for validation, testing and workflowClosed A workflow is a series of steps necessary to complete a process. In the context of Keyfactor Command, it refers to the workflow builder, which allows you automate event-driven tasks when a certificate is requested or revoked. development. It also serves secondarily as documentation for the API. The link to the Keyfactor API Reference and Utility is in the dropdown from the help icon () at the top of the Management Portal page next to the Log Out button.