Skip to content

WriteDiscoveredSshKey

Miriam McMahon edited this page Apr 27, 2023 · 5 revisions

Description

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.

Parameters

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

Compatibility

This command was introduced in Safeguard v6.6

Examples

Example 1:

{
    "WriteDiscoveredSshKey": {
        "SshKey": "%{ FoundKeyString }%",
        "KeyType": "%{ FoundKeyType }%",
        "Comment" : "%{ FoundComment }%",
        "Options" :"%{ FoundOptions }%"
    }
},

{
    "WriteDiscoveredSshKey": {
        "SshKey": "%{ FoundKeyString }%",
        "KeyType": "ssh-rsa"
    }
}

Clone this wiki locally