POST SSH Servers Access
The POST //Servers/Access method is used to create a mapping of one or more Linux logons to Keyfactor Command users or service accounts for one or more SSH servers. This method returns HTTP 200 OK on a success with details of the logons and associated users, if applicable, for the specified SSH server(s).
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 belongs and limited for users with only the Server Admin (/ssh/server_admin/) role. For more information, see SSH Permissions.
Tip: Before creating a logon to user mapping, be sure that you have switched the server to which you will add your mapping (or its server group) to inventory and publish policy mode so that the key for the user will be published to the server. If the server is in inventory only mode and you add a mapping for it in Keyfactor Command, the mapping will appear in Keyfactor Command only and the key for the user will not be published out to the server.
Table 680: POST SSH Servers Access Input Parameters
ServerId |
Body |
Required. An integer indicating the Keyfactor Command reference ID for the SSH server. |
LogonUsers |
Body |
Required. An array of objects containing information for the Linux logon(s) to update. Show logon user information.
LogonName
|
A string indicating the name of the Linux logon.
|
Users
|
An array of strings indicating the user names of one or more users (in DOMAIN\\username format) or service accounts (in username@hostname format) to be associated with the logon.
|
For example: "LogonUsers": [
{
"LogonName": "johns",
"Users": [
"KEYEXAMPLE\\jsmith"
]
}
]
|
Table 681: POST SSH Servers Access Response Data
ServerId |
An integer indicating the Keyfactor Command reference ID for the SSH server. |
LogonUsers |
An array of objects containing information for the Linux logons from the Linux server that have been stored in Keyfactor Command. Show logon user information.
LogonId
|
An integer indicating the Keyfactor Command reference ID of the Linux logon.
|
LogonName
|
A string indicating the name of the Linux logon.
|
Users
|
An array of objects containing information about the users and/or service accounts defined in Keyfactor Command that have been mapped to the Linux logon. Show user information.
Id
|
An integer indicating the Keyfactor Command reference ID of a user or service account that has been associated with the logon. See SSH in the Keyfactor Command Reference Guide for more information.
|
Username
|
A string indicating the username of a user (in DOMAIN\\username format) or service account (in username@hostname format) that has been associated with the logon.
|
|
|
Tip: See the
Keyfactor API Reference and Utility which provides a utility through which the
Keyfactor endpoints can be called and results returned. It is intended to be used primarily for validation, testing and 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.