-
Notifications
You must be signed in to change notification settings - Fork 24
WriteDiscoveredSshKey
Miriam McMahon edited this page Apr 27, 2023
·
5 revisions
A mechanism for the script to return authorized key discovery information to the client.
This should be called for each authorized key discovered for the account on the remote host.
| Parameter Name | Description | Type | Resolved Type | Required |
|---|---|---|---|---|
| SshKey | The discovered public key string | Value | String | Yes |
| KeyType | The discovered public key type | Value | String | Yes |
| Comment | The discovered public key comment | Value | String | No |
| Options | The discovered public key options | Value | String | No |
This command was introduced in Safeguard v6.6
Example 1:
{
"WriteDiscoveredSshKey": {
"SshKey": "%{ FoundKeyString }%",
"KeyType": "%{ FoundKeyType }%",
"Comment" : "%{ FoundComment }%",
"Options" :"%{ FoundOptions }%"
}
},
{
"WriteDiscoveredSshKey": {
"SshKey": "%{ FoundKeyString }%",
"KeyType": "ssh-rsa"
}
}